jscpd
- Version 5.4.3
- Published
- 16.6 kB
- No dependencies
- MIT license
Install
npm i jscpdyarn add jscpdpnpm add jscpdOverview
Copy/paste detector for programming source code. Finds duplicated code in 224 languages, reports as HTML/JSON/SARIF/Markdown, fails CI over a duplication threshold. Rust engine, self-contained binary.
Index
Functions
Functions
function runJscpd
runJscpd: { ( args: readonly string[], options: SpawnSyncOptionsWithStringEncoding ): SpawnSyncReturns<string>; ( args: readonly string[], options?: SpawnSyncOptionsWithBufferEncoding ): SpawnSyncReturns<Buffer>; (args: readonly string[], options?: SpawnSyncOptions): SpawnSyncReturns<any>;};Runs this platform's jscpd binary with
args, the waychild_process.spawnSyncruns a command, and returns its result.Throws an
Errorwhosecodeis"JSCPD_NO_BINARY"when there is no prebuilt binary for this platform or the platform package is not installed. A binary that is missing on disk comes back inresult.error(codeENOENT), as fromspawnSync.
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/jscpd.
- Markdown[](https://www.jsdocs.io/package/jscpd)
- HTML<a href="https://www.jsdocs.io/package/jscpd"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2587 ms. - Missing or incorrect documentation? Open an issue for this package.
