{"analyzedAt":"2022-08-21T19:03:07.886Z","collected":{"metadata":{"name":"strip-decorators","scope":"unscoped","version":"1.0.3","description":"Small library and CLI tool to strip decorators and unused imports from a TypeScript project. Using the TypeScript compiler API.","keywords":["strip","decorators","elide","imports","typescript","transformer","ts-transformer"],"date":"2022-08-21T19:02:58.844Z","publisher":{"username":"jfrazier.eth","email":"jfrazier.eth@gmail.com"},"maintainers":[{"username":"jfrazier.eth","email":"jfrazier.eth@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/jfrazier-eth/strip-decorators.git"},"links":{"npm":"https://www.npmjs.com/package/strip-decorators","homepage":"https://github.com/jfrazier-eth/strip-decorators#readme","repository":"https://github.com/jfrazier-eth/strip-decorators","bugs":"https://github.com/jfrazier-eth/strip-decorators/issues"},"license":"MIT","devDependencies":{"@types/jest":"^27.5.1","@types/node":"^17.0.25","jest":"^28.1.0","np":"^7.6.1","rimraf":"^3.0.2","ts-jest":"^28.0.2"},"peerDependencies":{"typescript":"^4.6.3"},"releases":[{"from":"2022-07-22T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":0},{"from":"2022-05-23T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":2},{"from":"2022-02-22T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":2},{"from":"2021-08-21T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":2},{"from":"2020-08-21T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":2}],"hasTestScript":true,"readme":"# strip-decorators\nSmall library and CLI tool to strip decorators and unused imports from a TypeScript project. Using the TypeScript compiler API.\n\n## Installation\n### CLI\nInstall the CLI version globally:\n\n`npm i -g strip-decorators`\n\nUsage: `strip-decorators <entrypoint> <path to tsconfig>`\n\nExample: `strip-decorators ./src/index.ts ./tsconfig.json`\n\n### Library\nInstall the dev dependency locally:\n\n`npm i -D strip-decorators`\n\nUsage:\n\n```js\nimport { compileFromOptions } = from 'strip-decorators';\nimport * as tsconfig from './tsconfig.json';\n\n(() => {\n  const entrypoints = ['./src/index.ts'];\n  compileFromOptions(entrypoints, tsconfig.compilerOptions);\n})();\n```\n\nSee the [example](./example/) for more details.\n\n## Development\n```\n$ git clone https://github.com/jfrazier-eth/strip-decorators.git && cd strip-decorators\n$ npm install\n$ npm run build\n```\n\n## References\n- [`elide-imports.ts`](https://github.com/angular/angular-cli/blob/2539023c304a70d565595e555fad53ac156e0ee8/packages/ngtools/webpack/src/transformers/elide_imports.ts) is copied from the angular CLI"},"npm":{"downloads":[{"from":"2022-08-20T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":0},{"from":"2022-08-14T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":33},{"from":"2022-07-22T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":94},{"from":"2022-05-23T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":395},{"from":"2022-02-22T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":395},{"from":"2021-08-21T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":395}],"starsCount":0},"github":{"starsCount":1,"forksCount":0,"subscribersCount":3,"issues":{"count":3,"openCount":1,"distribution":{"3600":1,"10800":1,"32400":0,"97200":0,"291600":1,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":0},"isDisabled":false},"contributors":[{"username":"sleeyax","commitsCount":5},{"username":"jfrazier-eth","commitsCount":2}],"commits":[{"from":"2022-08-14T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":0},{"from":"2022-07-22T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":0},{"from":"2022-05-23T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":0},{"from":"2022-02-22T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":5},{"from":"2021-08-21T00:00:00.000Z","to":"2022-08-21T00:00:00.000Z","count":5}]},"source":{"files":{"readmeSize":1077,"testsSize":1291,"hasNpmIgnore":true}}},"evaluation":{"quality":{"carefulness":0.7899999999999999,"tests":0.6,"health":1,"branding":0},"popularity":{"communityInterest":6,"downloadsCount":131.66666666666666,"downloadsAcceleration":0.7908485540334855,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":0.9,"issuesDistribution":1}},"score":{"final":0.36121613188486545,"detail":{"quality":0.8083361703923992,"popularity":0.005853183144225728,"maintenance":0.3333333333333333}}}