Skip to content

Commit

Permalink
fix: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Mar 6, 2021
1 parent ee5208e commit 894f0b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ Custom detectors are currently only supported when using `depcheck` via the Node

```js
import depcheck from 'depcheck'
import nuxtDetector from 'depcheck-special-nuxt'
import nuxtSpecial from 'depcheck-special-nuxt'

const options = {
detectors: [
nuxtDetector,
specials: [
nuxtSpecial,
],
}

depcheck('/path/to/your/project', options, (unused) => {
depcheck(process.cwd(), options, unused => {
console.log(unused.dependencies); // an array containing the unused dependencies
console.log(unused.devDependencies); // an array containing the unused devDependencies
console.log(unused.missing); // a lookup containing the dependencies missing in `package.json` and where they are used
Expand Down

0 comments on commit 894f0b0

Please sign in to comment.