Socket
Socket
Sign inDemoInstall

anytv-node-cors

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    anytv-node-cors

Express CORS middleware


Version published
Weekly downloads
46
increased by228.57%
Maintainers
1
Install size
5.48 kB
Created
Weekly downloads
 

Readme

Source

anytv-node-cors

Build Status Coverage Status Dependencies

Our CORS middleware for expressjs. Especially made for our awesome expressjs boilerplate.

Install

npm install anytv-node-cors --save

Usage

Setting the middlware

On your index.js / server.js / app.js, register your database using a key.

import cors from 'anytv-node-cors';
import express from 'express';

app = express();

app.use(cors(config));

Contributing

Install the tools needed:

npm install mocha -g
npm install --dev

Running test

npm test
npm test-dev #to --watch

Code coverage

npm run coverage

Then open coverage/lcov-report/index.html.

License

MIT

Author

Freedom! Labs, any.TV Limited DBA Freedom!

Keywords

FAQs

Last updated on 15 Nov 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc