linguist-js
Advanced tools
Comparing version 1.0.0 to 1.0.1
# Changelog | ||
## 1.0.1 | ||
*2021-06-05* | ||
- Fixed command-line usage not working. | ||
## 1.0.0 | ||
@@ -4,0 +8,0 @@ *2021-06-05* |
@@ -0,1 +1,3 @@ | ||
#!/usr/bin/env node | ||
import linguist from './index.js'; | ||
@@ -2,0 +4,0 @@ |
{ | ||
"name": "linguist-js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,11 +8,13 @@ # Linguist | ||
Install locally using `npm install linguist` and import it into your code like so: | ||
Linguist is available [on npm](https://npmjs.com/package/linguist-js) as `linguist-js`. | ||
Install locally using `npm install linguist-js` and import it into your code like so: | ||
```js | ||
const linguist = require('linguist'); // old import syntax | ||
const linguist = require('linguist-js'); // old import syntax | ||
/*or*/ | ||
import linguist from 'linguist'; // modern import syntax | ||
import linguist from 'linguist-js'; // modern import syntax | ||
``` | ||
Or install globally using `npm install -g linguist` and run using the CLI command `linguist`. | ||
Or install globally using `npm install -g linguist-js` and run using the CLI command `linguist`. | ||
@@ -62,3 +64,3 @@ ```cmd | ||
```js | ||
const linguist = require('linguist'); | ||
const linguist = require('linguist-js'); | ||
let folder = './src'; | ||
@@ -65,0 +67,0 @@ let { count, results, languages } = linguist(folder); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5700
59
73