nnk-js
v1.0.5
Published
Converts written numbers into their numerical values.
Downloads
14
Maintainers
Readme
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.