lang-detect-cli

1.0.3 • Public • Published

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'

Package Sidebar

Install

npm i lang-detect-cli

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

4.75 kB

Total Files

6

Last publish

Collaborators

  • i.nabriski