Stats

 Latest version : 0.0.0

 Last updated on 2017-01-25T18:55:04.414Z

 Keywords : lib, serverless, microservice, stdlib, stdlib.com, node

 Downloads :

  • 19 in Last Month

 Links :

 Examples

¯\_(ツ)_/¯
No examples found for this package

 Readme

StdLib Node.js Bindings

Basic Node bindings for StdLib service accession.

Usage

const lib = require('lib');

// [1]: Call "stdlib.reflect" function, the latest version, from StdLib
lib.stdlib.reflect(0, 1, (err, result) => {});

// [2]: Call "stdlib.reflect" function from StdLib, with "dev" environment
lib.stdlib.reflect['@dev'](0, 1, (err, result) => {});

// [3]: Call "stdlib.reflect" function from StdLib, with "release" environment
//      This is equivalent to (1)
lib.stdlib.reflect['@release'](0, 1, (err, result) => {});

// [4]: Call "stdlib.reflect" function from StdLib, with specific version
//      This is equivalent to (1)
lib.stdlib.reflect['@0.0.1'](0, 1, (err, result) => {});

// [5]: Call functions within the service (not just the defaultFunction)
//      This is equivalent to (1) when "main" is the default function
lib.stdlib.reflect.main(0, 1, (err, result) => {});

// Valid string composition from first parameter only:
lib['stdlib.reflect'](0, 1, (err, result) => {});
lib['stdlib.reflect[@dev]'](0, 1, (err, result) => {});
lib['stdlib.reflect[@release]'](0, 1, (err, result) => {});
lib['stdlib.reflect[@0.0.1]'](0, 1, (err, result) => {});
lib['stdlib.reflect.main'](0, 1, (err, result) => {});
lib['stdlib.reflect[@dev].main'](0, 1, (err, result) => {});
lib['stdlib.reflect[@release].main'](0, 1, (err, result) => {});
lib['stdlib.reflect[@0.0.1].main'](0, 1, (err, result) => {});

 Comments