rebilly-js-sdk
v58.2.0
Published
Official Rebilly API JS library for the browser and Node
Downloads
6,154
Readme
Rebilly JS SDK library
The Rebilly JS SDK library allows you to consume the Rebilly API using either Node or the browser.
PCI Compliance note
If you need to handle raw payment card data, you should use Rebilly FramePay to generate tokens for your server-side logic.
Rebilly API definition
This library is a semantic representation of the Rebilly API definition.
The definition includes SDK examples for each API operation, listed under Request samples.
Usage
Instructions for installing and using the JS SDK can be found in the Rebilly Docs
Development
Build development dist
folder without sourcemap
npm run build:dev
Build release dist
folder with sourcemap (release)
npm run build:prod
Run all unit tests
npm run unit
Watch unit tests and re-run on change
npm run unit:watch
Generate coverage report
npm run coverage
Check that the generated typescript type file is valid (note: you should build the types first, by using npm run ts:bundle-types
)
npm run test:check-build-types
Typescript types generation
Types are automatically created because npm run ts:bundle-types
is called as part of npm run build:prod
.