uber-licence

3.1.1 • Public • Published

uber-licence

NPM version build status

Utility to deal with Uber OSS licences

Example

uber-licence

Running the uber-licence binary adds licencing information to every javascript file in your project.

You can run uber-licence --dry where it does not mutate any files and instead outputs -1.

You can use --file and --dir to specify your own file and directory filters to select source files to consider.

Recommended usage

// package.json
{
  "scripts": {
    "check-licence": "uber-licence --dry",
    "add-licence": "uber-licence"
  },
  "devDependencies": {
    "uber-licence": "uber/uber-licence",
    "pre-commit": "0.0.9"
  },
  "pre-commit": [
    "test",
    "check-licence"
  ],
  "pre-commit.silent": true
}

We recommend you add two scripts to your package and run check-licence in a git pre commit.

Installation

npm install uber-licence

Tests

npm test

Contributors

MIT Licenced

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.1.1
    313
    • latest
  • 2.0.0
    0
    • c2016

Version History

Package Sidebar

Install

npm i uber-licence

Weekly Downloads

317

Version

3.1.1

License

none

Last publish

Collaborators

  • rtsao
  • usiarhei
  • kenns29
  • shengs
  • emrahs
  • zacklk
  • uber-ospo
  • kriskowal
  • raynos
  • dawsonbotsford