lang-detect-cli
Detect Programming Language From String
Last updated 2 years ago by i.nabriski .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lang-detect-cli 
SYNC missed versions from official npm registry.

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'

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

4 Versions

  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 2
Last Day 1
Last Week 0
Last Month 5
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |