A cross-platform lightweight programming language detector.
npm install program-language-detector   

__A cross-platform lightweight programming language detector.__ (๐ Gzip < 2KB ๐)
``bash`
npm i program-language-detectoror
yarn add program-language-detector
`js
const { detect, languages, LANG } = require('program-language-detector')
detect('const egoist = new Object();') // => 'JavaScript'
detect('#app { font-size: 20px; }') // => 'CSS'
detect('
languages // => A list of detectable languages
LANG // => A map of detectable languages, whose key and value are both lang name
`
- JavaScript
- C
- C++
- Python
- Java
- HTML
- CSS
- Ruby
- Go
- PHP
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
program-language-detector ยฉ ulivz, Released under the MIT License.
Authored and maintained by ulivz with help from contributors (list).
> github.com/ulivz ยท GitHub @ulivz