Socket
Socket
Sign inDemoInstall

lang-detect-cli

Package Overview
Dependencies
54
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lang-detect-cli

Detect Programming Language From String


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
2.05 MB
Created
Weekly downloads
 

Readme

Source

Programming Language Detection CLI

Based on highlight.js

Install

npm install -g lang-detect-cli

Usage

lang-detect
Read string from stdin and detect programming language.

Options:
  --version   Show version number                                      [boolean]
  --mime, -m  get output as a mime type
  --lang, -l  list of languages to match against (all if not present)
                                                           [array] [default: []]
  --help      Show help                                                [boolean]

Examples:
  lang-detect -l javascript xml < file
  echo "{\"koko\":1}" | lang-detect -m -l json html css # output is
  'application/json'

Keywords

FAQs

Last updated on 08 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc