Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

linguist-js

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linguist-js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

changelog.md
# 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 @@

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc