🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

caesarjs-plugin-builder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caesarjs-plugin-builder

An utility API library to build plugins for the caesar.js secure microservices framework

0.0.2
latest
npm
Version published
Weekly downloads
3
-86.96%
Maintainers
1
Weekly downloads
 
Created
Source

Caesar.js plugin builder is an utility class library to create plugins and extend caesar.js secure microservices framework for node.js.

Caesar.js Project's homepage

https://caesarjs.com/

Plugin Builder Api Documentation Page

https://caesarjs.com/documentation/pluginbuilder-api/

A quick code example about building a simple plugin:

const pluginBuilder = require('caesarjs-plugin-builder');

const pb = new pluginBuilder('calculator-division-plugin', 'Calculator plugin', 'Mr Caesar', '0.0.1')
                            .addRouteWithPatternObject({role: 'calculator', operation: 'division'}, (req, res) => {
                                let n1 = req.data.n1;
                                let n2 = req.data.n2;
                                let division = (n1 / n2);
                                res.caesarJson({division});
                            });


Keywords

microservice framework

FAQs

Package last updated on 02 Jul 2017

Did you know?

Socket

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