Copyright
Always up-to-date copyright notices.
Install
npm install copyright
Usage
const copyright = ;
Default
;
Copyright © 2020
With name
;
Copyright © 2020 Christopher Newton
With options
;
Copyright © 1981-2081 Christopher Newton
Options
property | type | description |
---|---|---|
name |
String | Name to be appended to the copyright notice. |
endYear |
Number | Sets the year, or end year when used with startYear . |
startYear |
Number | Sets start year and yields a year range (eg. 1977-2020). |
short |
Boolean | Omits the leading 'Copyright' word |
htmlEntities |
Boolean | Escapes the copyright symbol; ie. © becomes © |
Examples
Name with start year and end year
;
Copyright © 1981-2081 Christopher Newton
Short with name
;
© 2020 Christopher Newton
Everything
;
© 1981-2020 Christopher Newton