1.0.5 • Published 1 year ago

nnk-js v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

nnk-js

Convert textual representations of numbers into their numerical values with nnk-js, an easy-to-use JavaScript library.

Installation

Install nnk-js using npm:

npm install nnk-js

Or with yarn:

yarn add nnk-js

Usage

Once installed, you can import nnk-js into your project as follows:

// Import the library
import { Ltn } from 'nnk-js';

// Create an instance of NoNumbersKeyboard
const ltn = new Ltn();
// Examples of usage
console.log(ltn.one()); // Outputs: 1
console.log(ltn.twenty()); // Outputs: 20
console.log(ltn.oneHundredTwentyThree()); // Outputs: 123
console.log(ltn.oneThousandTwenty()); // Outputs: 1020

Features

Convert written numbers from "zero" to "million" into integers. Supports complex number names like oneThousandTwoHundredThirtyFour. Simple API to integrate with any JavaScript project.

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago