open-index/open-npm huggingface dataset:
npm package: @nimbella/nimbella-deployer
Description: The Nimbella platform deployer library
Author: Nimbella Corporation
Latest version: 4.3.10

# Nimbella platform deployer library (Node.js)

This repository contains an internal Node.js library for deploying Nimbella applications using the Platform API. It is used by the [Nimbella CLI](https://github.com/nimbella/nimbella-cli) and [other tools](https://github.com/nimbella/nimbella-cli).

### Development

#### Building the library

`npm run build`

#### Testing the library

Use the Nimbella CLI tests located here: https://github.com/nimbella/nimbella-cli/tree/master/tests with this library as a local dependency in that project using [npm link](https://docs.npmjs.com/cli/v7/commands/npm-link).

#### Releasing library versions

This is handed by Github Actions. Once a new release is tagged in the Github UI - that version is pushed to the NPM package.
npm package: @nimbella/plugin-apispecgen
Description: Nimbella API Specifications Generator - [A Nimbella CLI](https://nimbella.io/downloads/nim/nim.html) plugin. Generates postman, openapi, nimbella project configuration file in an existing nimbella project
Author: nimbella
Latest version: 0.0.1

# Nimbella API Specifications Generator

This package is a plugin to extend the functionality of the Nimbella command interface, plugins allow developers to extend the functionality by adding commands or features.

## Prerequisites

This is an extension to the [Nimbella Command Line Tool](https://nimbella.io/downloads/nim/nim.html), ensure you have [it](https://nimbella.io/downloads/nim/nim.html#install-nim-globally).

The command in this plugin can be invoked using `nim project update --config`. It will generate api specifications in the specified format for an existing nimbella project.

```
nim -v
nimbella-cli/1.6.0 linux-x64 node-v14.4.0

```

## Install

Use this command to install the latest version of apispecgen plugin

```
nim plugin add apispecgen
```

## Verify

Check the list of currently installed plugins:

```
nim plugins
apispecgen-1.0.0
```

## Usage

```
nim project update --config
```

---

## Uninstall

Use this command to uninstall this plugin

```
nim plugin remove apispecgen
```
npm package: @nimbella/sdk
Description: A Node.js library to interact with nimbella.com services.
Latest version: 1.3.5

# 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.
npm package: @nimbella/storage
Description: Nimbella Platform Storage providers implementations and interfaces types.
Author: Nimbella Corporation
Latest version: 0.0.7

# Nimbella Storage Providers for Node.js

A Node.js library to interact with [`nimbella.com`](https://nimbella.com) storage services. 
For more information on how to use the storage services, please see the [documentation](https://docs.nimbella.com/file-stores). 

This library is automatically exposed via the [Nimbella SDK for Node.js](https://github.com/nimbella/nimbella-sdk-nodejs). It is not intended to be used directly.

## Storage Providers

The following storage providers are currently supported:

- [AWS S3](https://aws.amazon.com/s3/) - ([source code](./src/providers/s3.ts))
- [GCP GCS](https://cloud.google.com/storage/) - ([source code](./src/providers/gcs.ts))

## API

```javascript
export function getStorageProvider(providerId: string): StorageProvider
```

Factory function to return the storage client for a provider. The `providerId` key is available from a runtime environment variable (`__NIM_STORAGE_KEY`). If a provider cannot be found for the key - an error is thrown.

## Development

### Building

```
npm run build
```

[esbuild](https://esbuild.github.io/) is used to produce the compiled version of the library for publishing. It is orders of magnitude faster that the native TS compiler or other build tools.

esbuild [uses JS files](https://esbuild.github.io/getting-started/#build-scripts) to configure the build system - rather than a JSON file. This project's configuration resides in [esbuild.config.js](./esbuild.config.js). It produces a single bundled and minified version of the library (with source maps) under the `lib` directory. 

esbuild [does not](https://esbuild.github.io/content-types/#typescript) check TS's types during build or produce types definition files. This is handled by running the normal TS compiler with the `emitDeclarationOnly` flag during the production build.

### Testing

```
npm test
```

This command will execute a very basic high-level set of unit tests for the factory function and each provider. It just tests the correct storage providers are returned for the storage key. It runs against the TS source files located in `src`.

There is also a command to run the tests against the built-version of the library (to ensure the compilation process didn't introduce any issues).

```
npm run test:built
```

This command uses a custom TS config file (`tsconfig.test.json`) to override the default "paths" configuration to load the built-version of the library in the tests.

## 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.