1.0.0 • Published 9 months ago
valid-copyright v1.0.0
Valid Copyright
This package allows you to always have an up-to-date copyrighting.
Install
npm install valid-copyright
Usage
First year of copyright is required.
copyright(2020);
In this example, if the current year is 2020 or earlier than the first year, the output will be:
©2020.
Otherwise, if the current year is, for example, 2024:
©2020–2024.
Optional parameter 'owner'
copyright(2020, {owner: "John Donne"});
The output if the current year is, for example, 2024:
©2020–2024 John Donne.
Optional parameter 'warning'
copyright(2020, {owner: "John Donne", warning: true});
The output if the current year is, for example, 2024:
©2020–2024 John Donne. All Rights Reserved.
License
1.0.0
9 months ago