Getting Started
PolicyGen is a way to codify your privacy and terms of service policies and auto-generate great looking pages for your website.
Quick Start
Section titled “Quick Start”Installation
Section titled “Installation”You can use PolicyGen by installing a local copy into your node modules or using npx.
npm install --save-dev policygenConfiguration
Section titled “Configuration”You will need to create a policygen.json configuration file for each project.
This is necessary to specify the specifics policies that your company implements.
To create the policygen.json file, run the init command in the root folder of your project.
npx policygen initThe init function will walk you through answering a bunch of policy questions in a wizard format, if you want to skip the wizard feel free to pass --default to emit a blank default policygen.json file instead.
Generation
Section titled “Generation”Once your policygen.json file is setup you can generate your policy files.
Generate takes flags to specify which policies you want to generate, default :all
npx policygen generatenpx policy generate:privacynpx policy generate:terms