1.4.2 • Published 3 years ago

detectorist v1.4.2

Weekly downloads
1,416
License
Apache-2.0
Repository
github
Last release
3 years ago

Detectorist

Detectorist is a library containing heuristics for determining the type of project in a directory.

Install as a library

Run npm install --save detectorist to install Detectorist and add it to your package.json.

Install as a CLI

Run `npm install -g detectorist.

Usage

The CLI tool takes one argument, the path to the directory to check. Example:

$ detectorist .
#{
#  "node": true,
#  "npm": true,
#  "docker": true
#}

Usage as a library is extremely simple. Given the following directory located at ~/projects/foobar:

$ ls -l
package.json
package-lock.json
index.js

And the usage of Dectorist:

const detect = require('detectorist')

const path = '~/projects/foobar'

detect(path)

// returns
//
// {
//   npm: true,
//   node: true,
//   docker: false
// }

Detectorist will determine that it is a node project, not a Docker project, and (provided that private != true in the package.json) is also an npm project.

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.6.0

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago