node-vironlib

1.7.2 • Public • Published

node-vironlib

Generic library for Viron

npm MIT License npm node

言語別 README

Description

node-vironlib is a helper library that makes it easy to implement functions that would normally be needed with Viron API Server.

Features

QuickStart

Install

$ npm install node-vironlib

Usage

const app = require('express')();
const VironLib = require('node-vironlib');
const vironlib = new VironLib({...}); // @see https://cam-inc.github.io/viron-doc/docs/adv_vironlib.html

// middleware
app.use(vironlib.swagger.middlware());
app.use(vironlib.auditLog.middleware());
app.use(vironlib.auth.google.middleware());
app.use(vironlib.adminRole.middleware());
app.use(vironlib.bodyCompletion.middleware());

// controller
app.post(vironlib.auth.controller.signIn);
app.post(vironlib.auth.controller.signOut);
app.get(vironlib.swagger.controller.show);
...

Test

npm test

Migration

CA Mobile, Inc. All rights reserved.

LICENSE

@see : LICENSE

/node-vironlib/

    Package Sidebar

    Install

    npm i node-vironlib

    Weekly Downloads

    126

    Version

    1.7.2

    License

    MIT

    Unpacked Size

    186 kB

    Total Files

    96

    Last publish

    Collaborators

    • npm-cam
    • ejithon
    • fkei
    • noritama
    • cathcheeno
    • goomura