{"_id":"@depcheck-rs-npm/core","_rev":"1-e612e18765dfce776bccfbf8d5cf4327","name":"@depcheck-rs-npm/core","dist-tags":{"latest":"0.0.20"},"versions":{"0.0.19":{"name":"@depcheck-rs-npm/core","repository":{"type":"git","url":"git+https://github.com/Dominionys/depcheck-rs.git"},"version":"0.0.19","main":"./dist/index.js","types":"./dist/index.d.ts","napi":{"name":"depcheck-rs-npm","triples":{"additional":["aarch64-apple-darwin","aarch64-linux-android","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","armv7-unknown-linux-gnueabihf","x86_64-unknown-linux-musl","x86_64-unknown-freebsd","i686-pc-windows-msvc","armv7-linux-androideabi"]}},"license":"MIT","engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","prepublishOnly":"yarn build:ts && yarn copy-bindings && napi prepublish -t npm","version":"napi version","build":"napi build --platform --cargo-name depcheck_rs_npm --js ./node/src/binding.js --dts ./node/src/binding.d.ts -p depcheck-rs-npm --release","build:debug":"napi build --platform --cargo-name depcheck_rs_npm --js ./node/src/binding.js --dts ./node/src/binding.d.ts -p depcheck-rs-npm","build:ts":"tsc --project tsconfig.build.json","build:ts:debug":"tsc --noEmit","test":"yarn copy-test-bindings && jest","clean":"rimraf node/dist","copy-bindings":"node copy-bindings.js","copy-test-bindings":"node copy-test-bindings.js"},"devDependencies":{"@napi-rs/cli":"^2.5.0","@types/jest":"^27.4.1","jest":"^27.5.1","rimraf":"^3.0.2","ts-jest":"^27.1.4","typescript":"^4.6.3"},"optionalDependencies":{"@depcheck-rs-npm/core-win32-x64-msvc":"0.0.19","@depcheck-rs-npm/core-darwin-x64":"0.0.19","@depcheck-rs-npm/core-linux-x64-gnu":"0.0.19","@depcheck-rs-npm/core-darwin-arm64":"0.0.19","@depcheck-rs-npm/core-android-arm64":"0.0.19","@depcheck-rs-npm/core-linux-arm64-gnu":"0.0.19","@depcheck-rs-npm/core-linux-arm64-musl":"0.0.19","@depcheck-rs-npm/core-win32-arm64-msvc":"0.0.19","@depcheck-rs-npm/core-linux-arm-gnueabihf":"0.0.19","@depcheck-rs-npm/core-linux-x64-musl":"0.0.19","@depcheck-rs-npm/core-freebsd-x64":"0.0.19","@depcheck-rs-npm/core-win32-ia32-msvc":"0.0.19","@depcheck-rs-npm/core-android-arm-eabi":"0.0.19"},"gitHead":"26c00be58ebd2fc4dc0729e2393d3d6e529d465b","description":"Work in progress.","bugs":{"url":"https://github.com/Dominionys/depcheck-rs/issues"},"homepage":"https://github.com/Dominionys/depcheck-rs#readme","dependencies":{"@depcheck-rs-npm/core-win32-x64-msvc":"0.0.19","@depcheck-rs-npm/core-darwin-x64":"0.0.19","@depcheck-rs-npm/core-linux-x64-gnu":"0.0.19","@depcheck-rs-npm/core-darwin-arm64":"0.0.19","@depcheck-rs-npm/core-android-arm64":"0.0.19","@depcheck-rs-npm/core-linux-arm64-gnu":"0.0.19","@depcheck-rs-npm/core-linux-arm64-musl":"0.0.19","@depcheck-rs-npm/core-win32-arm64-msvc":"0.0.19","@depcheck-rs-npm/core-linux-arm-gnueabihf":"0.0.19","@depcheck-rs-npm/core-linux-x64-musl":"0.0.19","@depcheck-rs-npm/core-freebsd-x64":"0.0.19","@depcheck-rs-npm/core-win32-ia32-msvc":"0.0.19","@depcheck-rs-npm/core-android-arm-eabi":"0.0.19"},"_id":"@depcheck-rs-npm/core@0.0.19","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-d864LO76CkdDQ1bvqGDPMQHaEk3mN6G4fVkSmUOjc0+kbam7B6Rj4LJ5bwGvHEUW7i8OkSqoGs/mNbW9hQ9R6Q==","shasum":"7b4cf20444b227980cb4857e07a333b35f191bfb","tarball":"https://registry.npmjs.org/@depcheck-rs-npm/core/-/core-0.0.19.tgz","fileCount":6,"unpackedSize":19974,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaF+RAb9K1RgB/k2J4m6hJEWFRXvy7jWjb+eGa/ZvIVAiEAi4zUN785Zl7mTDvQ/bDXuLPHVOl/wr2CzHft7L/zw3A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUuCkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSZQ/+PANi/Q4YS02w2idjFJUe4gnTJW+iiuUTltfvLxi7FeZnUXR4\r\nstyHt5L+F/gNzfBpJhKpc5ga3aN7EPpoCWrVTwMmc8OraY68rFBBt5HHtQaB\r\n2J6gypeq6biSQqH5vLoTGlcP22owKQguMNZVjWvHWRbfOh+zva2gDRqwqpSF\r\n+BLGUOkcUubVnBXur3gNLib8JfLJlH5fbavZ08FOvuXxg0ixVm44ewneLOkA\r\ns4dbtn1F+JkvM2uLdLtv/5APjPksqCMTDW+y7podphrqGT8CKojZ3Xb15+OI\r\nctM9vj0UAj4dLZKi0x0BM4lgtFWO6duFZFkDfbp1uKFKotx/yolPQ0nZRMGt\r\n/H5R1761sADcUX0AW6r6ZFfhiVLZXpkHMzd2Q4iFAaLcRo+yGSM8XW7b9yeH\r\npHHKellTRE+O4Xg5c5JcIZOun0SzvvPszOmgkVFbLBqBmM+QBlydysWMke6G\r\nL/nI5tTUkPW0Yu3fz7A50is4w1QYkFOlwLQC2SPMaejmlAnefbAc6jejYr8A\r\nhEg7BvNdFy9cq6H/y2ooqcVFR/KfZCyyPjoWjdg8S1qGgmkGRuALDFLSFkFR\r\n+koV/yEAh09EZkkcWL9QCByl6nfI1SR5ecvef0bXZd6HXmZVIxUB11S7LYmU\r\nqtTSvt3bnsc252LlkfUnD08zVVGKFD6bREE=\r\n=Eouj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dominionys","email":"depchecknpm@gmail.com"},"directories":{},"maintainers":[{"name":"dominionys","email":"depchecknpm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core_0.0.19_1649598628237_0.6475222674005019"},"_hasShrinkwrap":false},"0.0.20":{"name":"@depcheck-rs-npm/core","repository":{"type":"git","url":"git+https://github.com/Dominionys/depcheck-rs.git"},"version":"0.0.20","main":"./dist/index.js","types":"./dist/index.d.ts","napi":{"name":"depcheck-rs-npm","triples":{"additional":["aarch64-apple-darwin","aarch64-linux-android","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","armv7-unknown-linux-gnueabihf","x86_64-unknown-linux-musl","x86_64-unknown-freebsd","i686-pc-windows-msvc","armv7-linux-androideabi"]}},"license":"MIT","engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","prepublishOnly":"yarn build:ts && yarn copy-bindings && napi prepublish -t npm","version":"napi version","build":"napi build --platform --cargo-name depcheck_rs_npm --js ./node/src/binding.js --dts ./node/src/binding.d.ts -p depcheck-rs-npm --release","build:debug":"napi build --platform --cargo-name depcheck_rs_npm --js ./node/src/binding.js --dts ./node/src/binding.d.ts -p depcheck-rs-npm","build:ts":"tsc --project tsconfig.build.json","build:ts:debug":"tsc --noEmit","test":"yarn copy-test-bindings && jest","clean":"rimraf node/dist","copy-bindings":"node copy-bindings.js","copy-test-bindings":"node copy-test-bindings.js"},"devDependencies":{"@napi-rs/cli":"^2.5.0","@types/jest":"^27.4.1","jest":"^27.5.1","rimraf":"^3.0.2","ts-jest":"^27.1.4","typescript":"^4.6.3"},"optionalDependencies":{"@depcheck-rs-npm/core-win32-x64-msvc":"0.0.20","@depcheck-rs-npm/core-darwin-x64":"0.0.20","@depcheck-rs-npm/core-linux-x64-gnu":"0.0.20","@depcheck-rs-npm/core-darwin-arm64":"0.0.20","@depcheck-rs-npm/core-android-arm64":"0.0.20","@depcheck-rs-npm/core-linux-arm64-gnu":"0.0.20","@depcheck-rs-npm/core-linux-arm64-musl":"0.0.20","@depcheck-rs-npm/core-win32-arm64-msvc":"0.0.20","@depcheck-rs-npm/core-linux-arm-gnueabihf":"0.0.20","@depcheck-rs-npm/core-linux-x64-musl":"0.0.20","@depcheck-rs-npm/core-freebsd-x64":"0.0.20","@depcheck-rs-npm/core-win32-ia32-msvc":"0.0.20","@depcheck-rs-npm/core-android-arm-eabi":"0.0.20"},"gitHead":"50b40946f072c455bb9b1482f661af2d58b07546","description":"Depcheck is a tool for analyzing the dependencies in a project to see: how each dependency is used, which dependencies are useless, and which dependencies are missing from `package.json`. It is a port of original [depcheck](https://github.com/depcheck/dep","bugs":{"url":"https://github.com/Dominionys/depcheck-rs/issues"},"homepage":"https://github.com/Dominionys/depcheck-rs#readme","dependencies":{"@depcheck-rs-npm/core-win32-x64-msvc":"0.0.20","@depcheck-rs-npm/core-darwin-x64":"0.0.20","@depcheck-rs-npm/core-linux-x64-gnu":"0.0.20","@depcheck-rs-npm/core-darwin-arm64":"0.0.20","@depcheck-rs-npm/core-android-arm64":"0.0.20","@depcheck-rs-npm/core-linux-arm64-gnu":"0.0.20","@depcheck-rs-npm/core-linux-arm64-musl":"0.0.20","@depcheck-rs-npm/core-win32-arm64-msvc":"0.0.20","@depcheck-rs-npm/core-linux-arm-gnueabihf":"0.0.20","@depcheck-rs-npm/core-linux-x64-musl":"0.0.20","@depcheck-rs-npm/core-freebsd-x64":"0.0.20","@depcheck-rs-npm/core-win32-ia32-msvc":"0.0.20","@depcheck-rs-npm/core-android-arm-eabi":"0.0.20"},"_id":"@depcheck-rs-npm/core@0.0.20","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-Fa+j2B6vIJB8mpPZcB3tjIRapjLb1o8V8e7tnw5fYBfy8TJQ4tSPa/kHsuFAm6uF/OxTCI9uONEfiUiSu/pUag==","shasum":"16bee855b8ef05c3a0a7b7d894cf72a53c25d539","tarball":"https://registry.npmjs.org/@depcheck-rs-npm/core/-/core-0.0.20.tgz","fileCount":6,"unpackedSize":13279,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmG/tebqLdIXe8spaN2X7wVd15UMxt9OUeXPDS8gueYAiBKXle/VgIUaXGGf5iPWbiEwE2mSLs8G8edWfYKRpjCJA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiU85+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLag/9HyDSkOFiM/ddf+h3cXjfUI7X7tFUKKNwD1kUrA5xKSGaYpYk\r\n9sMt0ePB35eozh6UgNO/Gp5B8WSFWupl7k0Gg6LX4Fjt9VokPy5CtpUg3rZ5\r\nMStJ9hV4WSY8lmmWQHcA9347IE/4hCDBZ+cTq2lm7X0rqUSmDnCqqXrKVP0K\r\nskJ06Ge4fbRo0HLy2C290xSySTRNrKM16iCzRcVdj7K6+d2kewSptH/KuBFX\r\nvDRO5bxhPo0JpDMppqthgB0EzYL4ZP/0z3+IksmtGcb7Pm00bAo5gTqJ4fIO\r\n5E7d5PU4zZJ04v/bOeLeUAiPwIznv91g1bZc8HBP86/Q1SpIbtkNvUcUBLjo\r\ndnny4yxrA0lbEc5YiEVvJIFrpFKv0cr/lW+DLPnSTZEC3kLOHChz2J+rL36s\r\niTG7zQf5mSAlw7RhodhdNzdq4/ixRibe7LpGU8weI7IaDe20hXvZuttz/+PN\r\n1rc42HmJkPOevg0ozyDVh5d8nf63bvYxpB+f01zDJ9zH5YVTkAa+9zTxr2Mu\r\nXAMKQHOHWHtvxw4zJfowYnyOr8n9W8lSARtr87KBm9prton/x4Gomm19TRnu\r\nSb8LGFMpqQ2gecXvQhRKqN692fMPqjEo3Tdfwqb2voFbYdl42mTD+KIYi1jR\r\nHtLFR/HnO882WVzZjsQSMDjnHUDgi14o8nI=\r\n=Faaj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dominionys","email":"depchecknpm@gmail.com"},"directories":{},"maintainers":[{"name":"dominionys","email":"depchecknpm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core_0.0.20_1649659517908_0.007730132923184252"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-10T13:50:28.099Z","0.0.19":"2022-04-10T13:50:28.361Z","modified":"2022-04-11T06:45:18.167Z","0.0.20":"2022-04-11T06:45:18.086Z"},"maintainers":[{"name":"dominionys","email":"depchecknpm@gmail.com"}],"description":"Depcheck is a tool for analyzing the dependencies in a project to see: how each dependency is used, which dependencies are useless, and which dependencies are missing from `package.json`. It is a port of original [depcheck](https://github.com/depcheck/dep","homepage":"https://github.com/Dominionys/depcheck-rs#readme","repository":{"type":"git","url":"git+https://github.com/Dominionys/depcheck-rs.git"},"bugs":{"url":"https://github.com/Dominionys/depcheck-rs/issues"},"license":"MIT","readme":"# depcheck-rs\n\nDepcheck is a tool for analyzing the dependencies in a project to see: how each dependency is used, which dependencies are useless, and which dependencies are missing from `package.json`.\nIt is a port of original [depcheck](https://github.com/depcheck/depcheck). It uses [swc](https://github.com/swc-project/swc) for parsing.\n\n## Installation\n```\nnpm install @depcheck-rs-npm/core\n```\n\nOr use rust to install depcheck-rs cli:\n\n```\ncargo install depcheck-rs-cli\n```\n\n## Syntax Support\n\nDepcheck not only recognizes the dependencies in JavaScript files, but also supports these syntaxes:\n\n- JavaScript (ES5, ES6 and ES7)\n- [React JSX](http://facebook.github.io/react/docs/jsx-in-depth.html)\n- [Typescript](http://www.typescriptlang.org/)\n\n## Usage\n\n```\nUSAGE:\n    depcheck-rs [OPTIONS]\n\nOPTIONS:\n    -d, --directory <DIRECTORY>\n            The directory argument is the root directory of your project [default: .]\n\n    -h, --help\n            Print help information\n\n        --ignore-bin-package\n            A flag to indicate if depcheck ignores the packages containing bin entry\n\n        --ignore-path <IGNORE_PATH>\n            Path to a file with patterns describing files to ignore\n\n        --ignore-patterns <IGNORE_PATTERNS>\n            Comma separated patterns describing files or directories to ignore\n\n        --ignore_matches <IGNORE_MATCHES>\n            A comma separated array containing package names to ignore\n\n    -q, --quiet\n            Less output per occurrence\n\n        --skip-missing\n            A flag to indicate if depcheck skips calculation of missing dependencies\n\n    -v, --verbose\n            More output per occurrence\n\n    -V, --version\n            Print version information\n\n```\n\n## API\n\n```js\n\nimport {depcheck} from \"@depcheck-rs-npm/core\";\n\nconst options = {\n\n  ignoreBinPackage: false, // ignore the packages with bin entry\n\n  skipMissing: false, // skip calculation of missing dependencies\n\n  ignorePatterns: [\n\n    // files matching these patterns will be ignored\n\n    'sandbox',\n\n    'dist',\n\n    'bower_components',\n\n  ],\n\n  ignoreMatches: [\n\n    // ignore dependencies that matches these globs\n\n    'grunt-*',\n\n  ],\n\n  ignorePath: '/path/to/your/.depcheckignore',\n};\n\ndepcheck('/path/to/your/project', options).then((result) => {\n\n  console.log(result.unusedDependencies); // an array containing the unused dependencies\n\n  console.log(result.unusedDevDependencies); // an array containing the unused devDependencies\n\n  console.log(result.missingDependencies); // a lookup containing the dependencies missing in `package.json` and where they are used\n\n  console.log(result.usingDependencies); // a lookup indicating each dependency is used by which files\n\n});\n\n```\n\n## License\n\nMIT License.\n","readmeFilename":"README.md"}