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 Versions

13
7

2.5.2

Diff

Changelog

Source

2.5.2

2022-06-28

  • Fixed file extensions with multiple delimiters not being prioritised over basic extensions.
  • Fixed modeline checking not trimming comments from the first line.
  • Fixed modeline checking being applied to the first line even when it does not contain a modeline.
  • Fixed fallback language detection not being applied when an ambiguous interpreter is declared in a shebang line.
nixinova
published 2.5.1 •

Changelog

Source

2.5.1

2022-06-26

  • Fixed heuristics not being applied to files.
  • Fixed heuristics with multiple rules not being parsed.
nixinova
published 2.5.0 •

Changelog

Source

2.5.0

2022-05-14

  • Added boolean option offline to allow the use of pre-packaged metadata files instead of having them fetched from GitHub at runtime.
  • Added linguist-js as an alias of the linguist executable.
nixinova
published 2.4.2 •

Changelog

Source

2.4.2

2022-03-20

  • Fixed a crash occurring because of outdated file caches.
  • Fixed heuristics not being applied when using raw file input.
nixinova
published 2.4.1 •

Changelog

Source

2.4.1

2022-02-24

  • Fixed parsing of gitignore statements not matching its specification.
  • Fixed generated file names being applied case-sensitively.
  • Fixed generated files not being excluded from the input when using raw file mode.
  • Fixed modeline language selection not working for languages containing non-alphanumeric characters.
nixinova
published 2.4.0 •

Changelog

Source

2.4.0

2022-02-19

  • Added boolean option checkModeline (defaults to true) to check the modeline of files for explicit classification.
  • Fixed shebang statements not taking priority over other methods of disambiguation.
nixinova
published 2.3.2 •

Changelog

Source

2.3.2

2022-02-18

  • Changed vendored checking to include paths marked as documentation.
  • Fixed array input not being parsed properly when used with fileContent.
  • Fixed vendor patterns being erroneously applied to parent folders.
  • Fixed vendor patterns made for relative paths not being applied.
nixinova
published 2.3.1 •

Changelog

Source

2.3.1

2022-02-16

  • Fixed a crash occurring when parsing heuristics containing atomic groups.
  • Fixed option fileContent being ignored if set to an empty string.
  • Fixed file extensions being treated as case sensitive.
nixinova
published 2.3.0 •

Changelog

Source

2.3.0

2022-02-13

  • Added option fileContent to provide manual file content to analyse instead of reading from a folder on disk.
nixinova
published 2.2.1 •

Changelog

Source

2.2.1

2022-02-11

  • Fixed files marked as text=auto being classified as text.
  • Fixed a crash occurring when attempting to load unreadable files.
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