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
Installation
You can use PolicyGen by installing a local copy into your node modules or using npx.
npm install --save-dev policygenConfiguration
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
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
# Generate all policiesnpx policygen generate
# Generate only privacy policynpx policygen generate:privacy
# Generate only terms of servicenpx policygen generate:terms