Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`