tos

Terms of Service and Privacy Policy Generator

Usage no npm install needed!

<script type="module">
  import tos from 'https://cdn.skypack.dev/tos';
</script>

README

ToS NPM version Build Status Dependency Status

Terms of Service and Privacy Policy Generator

The content generated is derived from Ben Nadel's web-based generator. I appreciate it so much I wanted a CLI and Jade Pug output for it.

Install

$ npm install --global tos   # <= CLI installation
$ npm install --save tos     # <= module installation

CLI Usage

$ tos

  Usage: tos [options] <company> <state>

    Terms of Service and Privacy Policy Generator.

  Options:

    -h, --html  outputs as HTML

$ tos "Yo Company Name, Inc." "Delaware" > tos.pug
$ tos --html "Yo Company Name, Inc." "Delaware" > tos.html

Module Usage

var tos = require('tos');

tos(
  {
    markup: 'html', // 'markup' is optional, the default output is Pug
    company: 'Yo Company Name, Inc.',
    state: 'Delaware'
  },
  function(error, result) {
    // do yo thang
  }
);

License

ISC © Buster Collings