anytv-node-cors

    0.0.7 • Public • Published

    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

    Install

    npm i anytv-node-cors

    DownloadsWeekly Downloads

    14

    Version

    0.0.7

    License

    ISC

    Last publish

    Collaborators

    • freedom_sherwin
    • anytv_npmjs
    • wilbertverayin