{"analyzedAt":"2022-06-28T06:36:16.223Z","collected":{"metadata":{"name":"unused-es6","scope":"unscoped","version":"0.1.0","description":"Check for unused ES6 module imports.","keywords":["imports","unused","fiximports","jsx"],"date":"2015-05-07T13:36:41.380Z","author":{"name":"Chris Grieger"},"publisher":{"username":"fourcube","email":"chris@scolp.de"},"maintainers":[{"username":"fourcube","email":"chris@scolp.de"}],"repository":{"type":"git","url":"git+https://github.com/fourcube/unused.git"},"links":{"npm":"https://www.npmjs.com/package/unused-es6","homepage":"https://github.com/fourcube/unused#readme","repository":"https://github.com/fourcube/unused","bugs":"https://github.com/fourcube/unused/issues"},"license":"MIT","dependencies":{"acorn-jsx":"^1.0.0","esquery":"^0.4.0","react-tools":"^0.13.2","yargs":"^3.8.0"},"devDependencies":{"babel":"^5.2.15","istanbul":"^0.3.13","mocha":"^2.2.4"},"releases":[{"from":"2022-05-29T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2022-03-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2021-12-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2021-06-28T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2020-06-28T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0}],"hasTestScript":true,"readme":"# unused\n\n[![Build Status](https://travis-ci.org/fourcube/unused.svg)](https://travis-ci.org/fourcube/unused)\n\nReport unused ES6 imports in JS / JSX files. Supports output of vim commands that highlight all unused imports. `unused` exits with code 1 when unused imports were found.\n\nSample output:\n\n```bash\n$ cat test.js\n```\n\n```js\nimport foo from 'bar';\nimport { foo as fooz } from 'bar';\n\n//fooz.execute(foo);\n//foo.fooz();\nfooz.foo();\n```\n```bash\n$ unused test.js\nfoo      (test.js 1:7)\n  total 1\n```\n\nThere is also a raw mode which outputs json:\n\n```bash\n$ unused --raw=true test.js\n```\n```js\n[ { start: { line: 1, column: 7 },\n    end: { line: 1, column: 10 },\n    name: 'foo' } ]\n```\n\n\nVim output mode:\n\n```bash\n$ unused -v true test.js\n```\n```vim\n:call matchadd('Error', '\\%1l\\%<11v.\\%>8v')\n```\n\n## Usage\n\nInstall via npm:\n\n`npm install -g unused-es6`\n\nAdd the following to your ~/.vimrc file:\n\n```vim\n\"\" Highlight unused imports, first saves, clears previous matches\nnnoremap <leader>ji :w<CR>:call clearmatches()<CR>:let cmd = system('unused -v true ' . expand('%'))<CR>:exec cmd<CR>\n```\n\nPress `<leader>ji` to highlight all unused imports in your current file.\n\n![demo](/../screenshots/unused_deps.png?raw=true \"highlights of unused imports\")"},"npm":{"downloads":[{"from":"2022-06-27T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2022-06-21T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":1},{"from":"2022-05-29T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":7},{"from":"2022-03-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":62},{"from":"2021-12-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":109},{"from":"2021-06-28T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":199}],"starsCount":0},"github":{"starsCount":18,"forksCount":0,"subscribersCount":1,"issues":{"count":1,"openCount":1,"distribution":{"3600":0,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":1},"isDisabled":false},"contributors":[{"username":"fourcube","commitsCount":19}],"commits":[{"from":"2022-06-21T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2022-05-29T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2022-03-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2021-12-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2021-06-28T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0}],"statuses":[{"context":"continuous-integration/travis-ci/push","state":"success"}]},"source":{"files":{"readmeSize":1253,"testsSize":2582,"hasChangelog":true},"badges":[{"urls":{"original":"https://travis-ci.org/fourcube/unused.svg","service":"https://api.travis-ci.org/fourcube/unused.svg","shields":"https://img.shields.io/travis/fourcube/unused.svg","content":"https://img.shields.io/travis/fourcube/unused.json"},"info":{"service":"travis","type":"build"}}],"outdatedDependencies":{"yargs":{"required":"^3.8.0","stable":"17.5.1","latest":"17.5.1"},"esquery":{"required":"^0.4.0","stable":"1.4.0","latest":"1.4.0"},"acorn-jsx":{"required":"^1.0.0","stable":"5.3.2","latest":"5.3.2"}}}},"evaluation":{"quality":{"carefulness":0.39499999999999996,"tests":0.85,"health":0.5,"branding":0.15},"popularity":{"communityInterest":20,"downloadsCount":20.666666666666668,"downloadsAcceleration":-0.06288051750380518,"dependentsCount":0},"maintenance":{"releasesFrequency":0,"commitsFrequency":0,"openIssues":0,"issuesDistribution":0}},"score":{"final":0.3712145903939597,"detail":{"quality":0.7888046676741464,"popularity":0.05193893518449618,"maintenance":0.33255589364897764}}}