1.0.3 • Published 6 years ago

lang-detect-cli v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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'
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago