JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 692
  • Score
    100M100P100Q102388F
  • License Apache-2.0

A Node.js library to interact with nimbella.com services.

Package Exports

  • @nimbella/sdk
  • @nimbella/sdk/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nimbella/sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Nimbella SDK for Node.js

A Node.js library to interact with nimbella.com services.

Installation

npm install @nimbella/sdk

Usage

const nim = require('@nimbella/sdk');

async function main(args) {
  // Redis
  const redis = nim.redis();
  await redis.setAsync('key', 'value');
  const value = await redis.getAsync('key');

  // Storage
  const bucket = await nim.storage();
  const file = bucket.file('hello.txt'); // Filename
  await file.save('Hello world!'); // Contents

  // Database (MySQL)
  const db = await nim.mysql(); // Returns a configured mysql2 connection.
  const [rows, fields] = await db.execute('SELECT * FROM `table`');
}

Support

We're always happy to help you with any issues you encounter. You may want to join our Slack community to engage with us for a more rapid response.

License

Apache-2.0. See LICENSE to learn more.