JSPM

express-acsecure

0.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q22444F
  • License MIT

Express middleware for Access Secure

Package Exports

  • express-acsecure

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-acsecure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm version

express-acsecure

Access Secure middleware for Express (node), for logging, anti-spamming and black/white list...

Install

  • Go to https://logsecure.io, create an account and project. Remember project ID and keep project token in secret. (See images below for details)

  • npm i express-acsecure
  • Usage

    app.use(bodyParser.json()); // Optional, to record request body
    
    const acsecure = require('express-acsecure');
    
    const appId = 'myAppId';
    const appToken = 'myAppToken';
    const forbiddenCallback = res => res.status(403).end(); // callback for forbidden requests
    
    app.use(acsecure(appId, appToken, forbiddenCallback));

Images

register

register.JPG

create project

create-project.JPG

project ID and Token

console.JPG