npm.io
0.0.0 • Published 9 years agoCLI

js-linguist

Licence
MIT
Version
0.0.0
Deps
1
Vulns
0
Weekly
0

js-linguist

Build Status standard-readme compliant

Get GitHub Linguist data for a repository

This is a wrapper around GitHub's linguist. That will need to be installed for this to work.

Install

$ npm install --save js-linguist

Usage

const jsLinguist = require('js-linguist');

jsLinguist();
//=> {JavaScript: '100'}
Options
s, stdout

Print the response from linguist directly, instead of as a JSON object.

CLI

$ npm install --global js-linguist
$ js-linguist --help

  Usage
    $ linguist

  Options
    --stdout, -s  Print normal result to stdout instead of json. [Default: false]

  Examples
    $ linguist
    {JavaScript: 100}
    $ linguist -s
    100% JavaScript

Contribute

PRs accepted. Check out the issues!

License

MIT 2016 Richard Littauer

Keywords