express-legal

Express app serving configurable TOS and Privacy Policy

Usage no npm install needed!

<script type="module">
  import expressLegal from 'https://cdn.skypack.dev/express-legal';
</script>

README

express-legal

Express app that serves TOS and Privacy Policy

Install

npm install --save express-legal

Usage

const express = require('express')
const legal = require('express-legal')
const app = express()

app.use('/', legal({
  companyName: 'Acme Inc.',
  domain: 'example.com',
  lastModified: 'July 23rd, 2016',
  contactUrl: '/contact-us',
  email: 'hello@example.com'
}))

Your app will now serve the following routes:

  • /privacy-policy
  • /terms-of-service