New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bn-api-node

Package Overview
Dependencies
Maintainers
3
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

bn-api-node

Bigneon Javascript Middleware

2.1.21
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

bn-api-node

Bigneon Javascript Middleware

Install

npm install bn-api-node

import Bigneon from 'bn-api-node';
const options = {
	protocol: "http",
	host: "bigneon.dyn-ip.me",
	port: 80,
	basePath: "/api"
};
const headers = {};
const mocker = null;//This needs to be an instance of Mocker
const bigneon = new Bigneon.Server(options, headers, mocker);

//List events
bigneon.events.index().then(eventsResponse => {
	console.log(eventsResponse.data);
});

//Auth
bigneon.auth.authenticate({email: "email@example.com", "password": "password"})
    .then(response => {
        //We can now call authed endpoints
        bigneon.users.current().then(myUserResponse => {
        	console.log(myUserResponse.data);
        });
    });

Documentation

For all of the documentation go to https://big-neon.github.io/bn-api-node/

For endpoints https://big-neon.github.io/bn-api-node/modules/_resources_index_.html

Running

npm run test

npm run build

npm run build:web

npm run build:server

npm run build:tsc

npm run db-seed

npm run docs

npm run eslint:validate

npm run eslint:fix

Development

git clone https://github.com/big-neon/bn-api-node.git

cd bn-api-node/

npm install

For local development using bn-web, link bn-node-api as an npm module in bn-web:

npm link

cd ../bn-web

npm link bn-api-node

Keywords

bigneon

FAQs

Package last updated on 26 Mar 2020

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