rollup-plugin-eula
v1.0.2
Published
Updates the copyright year in the End User License Agreement
Downloads
124
Readme
rollup-plugin-eula
Keep your EULA file always current. This package replaces placeholder {{year}} in your legal documents with the actual current year automatically.
Installation
npm install rollup-plugin-eulaAPI References
updateEULAYear__(textFile)
Parameters:
textFile (object): An object that contains path to the text file.
textFile.filePath (string): A string that represents the path to the text file.
Usage
In the shown example, we use the updateEULAYear__ function with a file path './EULA.txt'. The function looks for a year format like "YYYY-{{year}}" in the EULA file, where the first year is static, and {{year}} is dynamically replaced with the current year (e.g. "2010-{{year}}" becomes "2010-2025").
import updateEULAYear__ from "rollup-plugin-eula";
updateEULAYear__({filePath: "./EULA.txt"});