open-index/open-npm huggingface dataset:
npm package: @radixdlt/uint256
Description: unsigned 256bit integer type for javascript and typescript
Author: Attila Varga
Latest version: 1.1.0

# uint256
Unsigned 256 bit Integer type

[![npm](https://img.shields.io/npm/v/uint256.svg)](https://www.npmjs.com/package/uint256)

## Install
`npm install uint256`

## Usage
```typescript
import { UInt256, U256 } from 'uint256';

const now = Date.now();
const scale = 18;
const digits = U256(10).pow(scale);

const POUND = (number: number) => U256(number).mul(digits);
const toPound = (number: UInt256, fraction = false) => {
  if (!fraction) {
    return String(number.div(digits));
  }
  const str = String(number);
  if (scale < 1) {
    return str;
  }
  return `${str.substring(0, str.length - scale)}.${str.substr(-scale)}`;
};

const a = POUND(11000);
const b = POUND(20000);

console.log('scale', scale);
console.log('a', toPound(a));
console.log('b', toPound(b));
console.log('mul', toPound(a.mul(b).div(digits)));
console.log('add', toPound(a.add(b)));
console.log('div', toPound(b.div(a.div(digits)), true));
console.log('sub', toPound(b.sub(a)));
console.log('elapsed(ms)', Date.now() - now);

// scale 18
// a 11000
// b 20000
// mul 220000000
// add 31000
// div 1.818181818181818181
// sub 9000
// elapsed(ms) 8
```
npm package: @radixiot/mango-client
Description: Mango Automation REST API client
Author: Jared Wiltshire
Latest version: 1.4.4

# Node.js Mango API Client

Mango Automation REST API client for Node.js written in ES6.

## Usage
**Run "npm install @radixiot/mango-client" first**

```
const MangoClient = require('@radixiot/mango-client');

const client = new MangoClient({
    protocol: 'https',
    host: 'localhost',
    port: 8443,
    rejectUnauthorized: false
});

const DataPoint = client.DataPoint;
const User = client.User;

User.login('admin', 'admin').then(data => {
    console.log(`Logged in as '${data.username}'.`);
    return DataPoint.getValue('internal_mango_num_data_points');
}).then(data => {
    console.log(`There are ${data.value} data points.`);

    // you can perform any arbitrary rest request like this
    return client.restRequest({
        path: '/rest/v1/data-points/internal_mango_num_data_points',
        method: 'GET',
        //data: {object}
    });
}).then(response => {
    console.log(`The data point's name is '${response.data.name}'`);
});
```
npm package: @radixiot/mango-module-tools
Description: Tools used for building Mango Automation modules
Author: Jared Wiltshire
Latest version: 4.0.0

# mango-module-tools
Tools used for building Mango Automation modules

To upgrade the version of this tool in all modules run this command from the maven parent:
```
mvn generate-resources -Pyarn-run -DyarnRunArgs="upgrade @radixiot/mango-module-tools"
```