license-stamper
v1.0.2
Published
stamp a license text from a file at the top each file in your repo in appropriate comment section
Downloads
6
Maintainers
Readme
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