@nimbu/api
v0.1.0
Published
A thin abstraction layer for the Nimbu API for modern browsers
Downloads
2
Readme
Thin abstraction layer for the Nimbu API for modern browsers
When we say "modern browsers" we mean a browser with:
window.Promise
: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promisewindow.fetch
: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_APIwindow.FormData
: https://developer.mozilla.org/en-US/docs/Web/API/FormData
Polyfilling these on older browsers will also work.
The files distributed in the package are compiled to ES6. If you need support for older browsers,
you need to configure your packager to compile files in node_modules
to ES5.
This library is written in TypeScript and provides bundled type declarations for usage with TypeScript.
Usage with node
To use this library with node, insert the following before requiring this library:
const fetch = require('node-fetch');
const FormData = require('form-data');
global.fetch = fetch;
global.FormData = FormData;