0.0.5 • Published 1 year ago
@bitstreamapis/bitstream-node v0.0.5
Bitstream Node.js Library
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'],
// excludeEndpoints: ['/example'],
});
.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.