linguist-js
Advanced tools
Comparing version 1.2.5 to 1.3.0
#!/usr/bin/env node | ||
require('../src/cli.js'); | ||
require('../dist/cli.js'); |
{ | ||
"name": "linguist-js", | ||
"version": "1.2.5", | ||
"version": "1.3.0", | ||
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.", | ||
"main": "src/index.js", | ||
"main": "dist/index.js", | ||
"bin": { | ||
@@ -15,5 +15,4 @@ "linguist": "bin/index.js" | ||
"files": [ | ||
"bin/*.js", | ||
"src/**/*.js", | ||
"src/**/*.d.ts" | ||
"bin/", | ||
"dist/" | ||
], | ||
@@ -20,0 +19,0 @@ "repository": { |
@@ -77,6 +77,13 @@ [![Latest version](https://img.shields.io/github/v/release/Nixinova/Linguist?label=latest%20version&style=flat-square)](https://github.com/Nixinova/Linguist/releases) | ||
An object containing analyser options. | ||
- `ignore:` (string array): | ||
A list of file paths to explicitly ignore. | ||
- `keepVendored` (boolean): | ||
Whether to keep vendored files (dependencies, etc) (defaults to `false`). | ||
- `quick` (boolean): | ||
Whether to skip the checking of gitattributes files for manual language classifications (defaults to `false`). | ||
Whether to skip the checking of `.gitattributes` and `.gitignore` files for manual language classifications (defaults to `false`). | ||
Alias for `checkAttributes: false, checkIgnored: false`. | ||
- `checkAttributes` (boolean): | ||
Force the checking of `.gitattributes` files (defaults to `true` unless `quick` is set). | ||
- `checkIgnored` (boolean): | ||
Force the checking of `.gitignore` files (defaults to `true` unless `quick` is set). | ||
@@ -86,3 +93,3 @@ ### Command-line | ||
``` | ||
linguist --analyze [<folder>] [--files] [--vendored] [--quick] | ||
linguist --analyze [<folder>] [<...options>] | ||
linguist --help | ||
@@ -96,2 +103,4 @@ ``` | ||
Analyse multiple folders using the syntax `"{folder1,folder2,...}"`. | ||
- `--ignore` (optional): | ||
A list of file paths (delimited with `;`) to ignore. | ||
- `--files` (optional): | ||
@@ -102,3 +111,8 @@ Whether to print a full list of all files analysed. | ||
- `--quick` (optional): | ||
Whether to skip the checking of gitattributes files for manual language classifications. | ||
Whether to skip the checking of `.gitattributes` and `.gitignore` files for manual language classifications. | ||
Alias for `--checkAttributes=false` `--checkIgnored=false`. | ||
- `checkAttributes` (optional): | ||
Force the checking of `.gitatributes` files (use alongside `--quick` to overwrite). | ||
- `checkIgnored` (optional): | ||
Force the checking of `.gitignore` files (use alongside `--quick` to overwrite). | ||
- `--help`: | ||
@@ -105,0 +119,0 @@ Display a help message. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
18560
286
118
1