@bitstreamapis/bitstream-node

0.0.3 • Public • Published

Bitstream Node.js Library

NPM Version NPM Downloads

The analytics and intelligence layer for your APIs. Please see bitstreamapis.com for more information and to sign up for an account.

Installation

npm install @bitstreamapis/bitstream-node

Usage

Express.js

Bitstream can be used as a middleware in an Express.js application.

app.js

const { useBitstream } = require('@bitstreamapis/bitstream-node');

useBitstream(app, {
  serviceId: process.env.BITSTREAM_SERVICE_ID,
  logLevel: process.env.BITSTREAM_LOG_LEVEL,
  // maskFields: ['sensitiveFieldName1', 'sensitiveFieldName2'],
});

.env

BITSTREAM_SERVICE_ID = 'YOUR-SERVICE-ID';
BITSTREAM_LOG_LEVEL = 20;

Fastify

Currently in beta testing. Please get in touch if you'd like to try it out.

NestJS

Currently in beta testing. Please get in touch if you'd like to try it out.

Package Sidebar

Install

npm i @bitstreamapis/bitstream-node

Weekly Downloads

35

Version

0.0.3

License

MIT

Unpacked Size

7.23 kB

Total Files

5

Last publish

Collaborators

  • hedley