nepali_metrics
v1.0.8
Published
This project creates an npm package for converting numbers to words, area, length etc.
Downloads
5
Readme
nepali_metric Package
This package includes nepali digit to word conversion, nepali area conversion, nepali length conversion.
Table of Contents
Installation
To install the package, use the following command:
npm install nepali_metric
Usage
To use the package, use the following code
For the Area conversion to all available units | Unit | Unit | Unit | |------|------|------| | 'khetmuri' | 'bigha' | 'kattha' | | 'dhur' | 'ropani' | 'aana' | | 'paisa' | 'daam' | 'sq.feet' | | 'sq.meter' | | |
const { convertFromTheMetricArea } = require("nepali_metrics");
console.log(convertFromTheMetricArea(1, "bigha")); // Outputs all units availabe.
For the specific Area Conversion
const { specificConvertFromTheMetricArea } = require("nepali_metrics");
// specificConvertFromTheMetricArea(value, <data unit>, <target unit>)
console.log(specificConvertFromTheMetricArea(10, "kattha", "ropani"));
For the nepali digit to word conversion
Upto महासंख
const { digitToWord } = require("nepali_metrics");
console.log(digitToWord(999999));