Skip to content

stamp a license text from a file at the top each file in your repo in appropriate comment section

License

Notifications You must be signed in to change notification settings

anshumandas/license-stamper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

stamp a license text from a file at the top each file in your repo in appropriate comment section

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published