Projects

Add Copyright

Tapas Adhikary

Tapas Adhikary

April 17, 2020

1 min read


stars0
forks0
watchers 0
MIT

Introduction

This is a Script to Automate adding the Copyright text to one or more source files Recursively. The Copyright texts get added to the top of the source file. Ice on the Cake is, it doesn't duplicate the copyright text if it is added already! Note: The same tool can be used to add any such text blocks like, License, File level Comments etc.

Here is an example of JavaScript(.js) file.


/*
 © Copyright 2020 tapasadhikary.com or one of its affiliates.
 * Some Sample Copyright Text Line
 * Some Sample Copyright Text Line
 * Some Sample Copyright Text Line
 * Some Sample Copyright Text Line
 * Some Sample Copyright Text Line
 * Some Sample Copyright Text Line
*/

const test = () => {
    console.log('test');
}

test();

Please check out the GitHub Repo for more details.