Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/will123195/express-legal
Express app serving configurable TOS and Privacy Policy
https://github.com/will123195/express-legal
Last synced: 10 days ago
JSON representation
Express app serving configurable TOS and Privacy Policy
- Host: GitHub
- URL: https://github.com/will123195/express-legal
- Owner: will123195
- Created: 2016-07-23T17:24:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T07:58:24.000Z (about 4 years ago)
- Last Synced: 2024-10-06T08:41:20.724Z (3 months ago)
- Language: HTML
- Size: 40 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express-legal
Express app that serves TOS and Privacy Policy## Install
```
npm install --save express-legal
```## Usage
```js
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: '[email protected]'
}))
```Your app will now serve the following routes:
- `/privacy-policy`
- `/terms-of-service`