Socket
Socket
Sign inDemoInstall

node-box-sdk

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

examples/express/middleware/box/index.js

2

examples/hapi/server.js

@@ -14,3 +14,3 @@ var Hapi = require('hapi');

server.start(function () {
console.log('Server running at:', server.info.uri);
console.log('server is listening');
});
{
"name": "node-box-sdk",
"version": "0.1.1",
"version": "0.1.2",
"description": "Node.js Box SDK",

@@ -20,2 +20,3 @@ "main": "box.js",

"chai": "^2.3.0",
"cookie-parser": "^1.3.5",
"express": "^4.13.0",

@@ -22,0 +23,0 @@ "hapi": "^8.6.1",

@@ -5,22 +5,15 @@ # Node.js Box SDK

This module interacts with the Box APIs and returns the requested data as well as an encrpyted string containing the Box Access Token and Box Refresh Token which allows client side apps to store this as a cookie for users.
This module interacts with the Box Cotent and View APIs. The Node.js Box SDK module returns the data requested as well as an encrypted string containing the Box Access Token and Box Refresh Token.
It abstracts away some of the complexity in regards to updating the Box Token upon expiration. However, provides flexibility for the developer to handle the Box callback and storage of the encrypted Box Token on a user by user basis.
### Install
npm install node-box-sdk
### Configure
var box = require('node-box-sdk');
box.configure({
client_id: 'id', // Box Content Client ID
client_secret: 'secret', // Box Content Client Secret
api_key: 'apikey', // Box View API Key
encrypt: { password: 'password' } // password for box token encrpytion
});
### Express Server Example
//Todo
### Express Use Example
[Using node-box-sdk inside Express](https://github.com/cydneymikel/node-box-sdk/tree/master/examples/express)
### Hapi Server Example
### Hapi Use Example
[Using node-box-sdk inside Hapi](https://github.com/cydneymikel/node-box-sdk/tree/master/examples/hapi)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc