0.0.0 • Published 7 years ago

js-linguist v0.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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