# @mathquis/node-rustling

> Snips Rustling library binding for Node.js

Latest version **1.2.0** (published 2021-12-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mathquis/node-rustling
pnpm add @mathquis/node-rustling
yarn add @mathquis/node-rustling
bun add @mathquis/node-rustling
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-12-09 |
| First published | 2020-02-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 35.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | Mathieu "Fastjack" Quisefit |
| Maintainers | mathquis |
| Keywords | rustling, duckling, parse, node, online |

## Links

- npm: https://www.npmjs.com/package/@mathquis/node-rustling
- Repository: https://github.com/mathquis/node-rustling
- Homepage: https://github.com/mathquis/node-rustling#readme
- Issues: https://github.com/mathquis/node-rustling/issues
- npm.io page: https://npm.io/package/@mathquis/node-rustling

## Dependencies (4)

- [neon-cli](https://npm.io/package/neon-cli.md) ^0.9.1
- [copyfiles](https://npm.io/package/copyfiles.md) ^2.4.1
- [node-addon-api](https://npm.io/package/node-addon-api.md) ^2.0.0
- [@mapbox/node-pre-gyp](https://npm.io/package/@mapbox/node-pre-gyp.md) ^1.0.7

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2021-12-09
- 1.1.1 — 2021-02-15
- 1.1.0 — 2021-02-15
- 1.0.3 — 2020-02-28
- 1.0.1 — 2020-02-20
- 1.0.0 — 2020-02-20

## README

# node-rustling

[![Build Status](https://travis-ci.org/mathquis/node-rustling.svg?branch=master)](https://travis-ci.org/mathquis/node-rustling) [![npm version](https://badge.fury.io/js/%40mathquis%2Fnode-rustling.svg)](https://badge.fury.io/js/%40mathquis%2Fnode-rustling)

Node.js bindings for Snips rustling-ontology parser.

## Supported Output

|   Output  | OutputKind |
| --------- | ------------- |
|  Integer |  Number |
| Float | Number |
| Ordinal | Ordinal |
| Temperature | Temperature |
| Time | Time |
| TimeInterval | Time |
| AmountOfMoney | AmountOfMoney |
| Duration | Duration |

## Get started

### Install rust

```bash
curl https://sh.rustup.rs -sSf | sh
```

### Installation

```bash
npm i @mathquis/node-rustling
```

### Usage

```javascript
const Rustling = require('@mathquis/node-rustling')

const Parser = new Rustling.Parser()

let result

result = Parser.parse("trente deux", ["Number"])
console.log(result)
// Outputs: [ { kind: 'Number', value: 32 } ]

result = parser.parse("samedi prochain à cinq heures du matin et trente sept minutes")
console.log(result)
/* Outputs: [ { kind: 'InstantTime',
    value: '2020-02-01 05:37:00',
    grain: 'Minute',
    precision: 'Exact' } ]
*/
```

---
_Source: https://npm.io/package/@mathquis/node-rustling · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
