Tables import and export is processed in-memory so it is suitable rather for smaller tables.
- Install npm package:
yarn add @keboola/storage-api-js-client
You can use ES6 imports (
import Storage from '@keboola/storage-api-js-client';) or require (
const Storage = require('@keboola/storage-api-js-client').default;).
const Storage = default;const storage = '' 'TOKEN';// You can call any request directlystorage;// Or use helper methodsstorageBuckets: Promise<any>;storageBuckets: Promise<any>;storageBuckets
Tests and development
You need to set some env variables for the tests:
KBC_TOKEN- a master token to a testing project. Please note that the project will be wiped out during the tests.
KBC_COMPONENT- name of some component used for Components Configurations API tests Tests can be run using
Deployment to NPM compiles the code from
src directory to
.flow extension. (So e.g.
src/Buckets.js is copied to
lib/Buckets.js.flow and compiled to