Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nimbella/nimbella-sdk-nodejs
Nimbella SDK for Node.js serverless functions.
https://github.com/nimbella/nimbella-sdk-nodejs
faas nimbella nodejs sdk serverless
Last synced: 9 days ago
JSON representation
Nimbella SDK for Node.js serverless functions.
- Host: GitHub
- URL: https://github.com/nimbella/nimbella-sdk-nodejs
- Owner: nimbella
- License: apache-2.0
- Created: 2020-09-07T01:30:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T20:11:57.000Z (almost 3 years ago)
- Last Synced: 2024-04-20T12:17:10.955Z (7 months ago)
- Topics: faas, nimbella, nodejs, sdk, serverless
- Language: JavaScript
- Homepage: https://nimbella.com
- Size: 70.3 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Nimbella SDK for Node.js
A Node.js library to interact with [`nimbella.com`](https://nimbella.com) services.
## Installation
```
npm install @nimbella/sdk
```## Usage
```js
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](https://nimbella-community.slack.com/) to engage with us for a more rapid response.
## License
Apache-2.0. See [LICENSE](LICENSE) to learn more.