open-index/open-npm huggingface dataset:
npm package: @nexbit/cuba-rest
Description: JavaScript library for working with CUBA Platform's REST API v2 (custom fork of @cuba-platform/rest package optimized for mobx-state-tree)
Author: Paolo Furini
Latest version: 0.4.2-nexbit.1

# CUBA REST JS

[![Build Status](https://travis-ci.org/pfurini/cuba-rest-js.svg?branch=master)](https://travis-ci.org/pfurini/cuba-rest-js)

JavaScript library for web and Node.js which facilitates CUBA Platfotm's REST API usage.
 
## Installation

### npm

```bash
npm install @nexbit/cuba-rest --save
```
Import as module  
```javascript
const cuba = require('@nexbit/cuba-rest');
```

Or using ES6 imports:

```javascript
import * as cuba from '@nexbit/cuba-rest';
```


## Dependencies and requirements
Library has no external dependencies. It's assumed that `Promise` and `fetch` -compatible API are available 
or polyfilled i.e. in node environment:
  
```bash
npm install node-fetch --save
```

```javascript
fetch = require('node-fetch');
```

## Usage

```javascript
import * as cuba from '@nexbit/cuba-rest';

const app = cuba.initializeApp({
  name: 'myApp',
  apiUrl: 'http://localhost:8080/app/rest/'
});

app.getUserInfo().then((d) => {
  console.log(d);
});

// retrieve app by name

const myApp = cuba.getApp('myApp');
```
or use if you want to manage instances yourself
```javascript
const myApp = new CubaApp("myApp", "http://localhost:8080/app/rest/")
```

```javascript
myApp.loadEntities('sec$User', {view: '_minimal', sort: 'login'}).then((users) => {
  console.log(users);
});
```

[Full API reference](https://cuba-platform.github.io/cuba-rest-js/)

## Development

### Tests
In order to run integration tests you need Java to be [installed](https://doc.cuba-platform.com/manual-latest/setup.html).
#### Integration tests
```bash
npm run test:integration
```
#### Running manually
Start test CUBA app
```bash
npm run start-test-app
```
Run tests
```bash
npm test
```
Stop test app
```bash
npm run teardown-test-app
```

### Build
```bash
npm run dist
```

### Lint
```bash
npm run lint
```

### Generate documentation
```bash
npm run generate-docs
```
npm package: @nexbot/nex-framework
Description: A discord bot framework by @nexbot-dev built on top of discord.js
Author: @nexbot-dev
Latest version: 1.0.0

# NexBot

## Introduction
NexBot is a discord bot framework which will be used as the core of other bots created by NexBotDev such as Natsuki and Aenex. NexBot framework is built on top of discord.js.

## NOTE
This package is still in early development mode