1.0.2 • Published 5 years ago

license-stamper v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

license-stamper

stamps a license text from a file (see sample/template.mustache) at the top of each file in the input directory using appropriate comments section (as defined in comment_block.yaml) and writes the file to the specified output directory (or input directory if output directory not specified)

It also ensures that it does not add the same license text again if already existing.

Usage

npm start

Or

npm i license-stamper --save-dev

and

node -e 'require(`license-stamper`).run()' '.'

or use the following in your pre publish pipeline

require('license-stamper').run(inputDir, outputDir, configYamlPath, templatePath)

Contributions

Any type of contribution towards enhancing this is welcomed

ToDos

  • '#!/usr/bin/env' node should remain as first line
  • Remove old license and update if config changed