Socket
Book a DemoInstallSign in
Socket

@nimbella/sdk

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimbella/sdk

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

1.3.5
latest
Source
npmnpm
Version published
Weekly downloads
350
-24.89%
Maintainers
4
Weekly downloads
 
Created
Source

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.

Keywords

nimbella

FAQs

Package last updated on 07 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.