Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

1.0 KB
Raw Blame

Utility to add license header to your files.

Forked from uber-licence.

Running the license-header binary adds licencing information to every javascript file in your project.

You can run license-header --dry where it does not mutate any files and instead outputs the number of files it would change.

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-license": "license-header --dry",
    "add-license": "license-header"
  },
  "devDependencies": {
    "minimist": "^1.1.0",
    "readdirp": "^2.1.0",
    "pre-commit": "0.0.9"
  },
  "pre-commit": [
    "test",
    "check-license"
  ],
  "pre-commit.silent": true
}

Add missing headers.

yarn run babel-node ./scripts/license-header/bin

Migrate to a new header.

yarn run babel-node ./scripts/license-header/bin --license ./scripts/license-header/FILE-HEADER --legacy ./LICENSE