Skip to content

πŸ‡°πŸ‡­Convert integer/decimal to Khmer word (0.64kB minified)

License

Notifications You must be signed in to change notification settings

seanghay/khmerword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Khmer word from integer

Convert integer/decimal to Khmer word

Installation

npm install khmerword

Usage

// ESM
import { integer, decimal } from 'khmerword';

// CommonJS
const { integer, decimal } = require('khmerword/cjs');

const result = integer(5246111515165, "-");
// => αž”αŸ’αžšαžΆαŸ†αž‘αŸ’αžšαžΈαž›αžΆαž“-αž–αžΈαžšαžšαž™-αžŸαŸ‚αžŸαž·αž”αž”αŸ’αžšαžΆαŸ†αž˜αž½αž™αž”αŸŠαžΈαž›αžΆαž“-αž˜αž½αž™αžšαž™-αžŠαž”αŸ‹αž˜αž½αž™αž›αžΆαž“-αž”αŸ’αžšαžΆαŸ†αžŸαŸ‚αž“-αž˜αž½αž™αž˜αŸ‰αžΊαž“-αž”αŸ’αžšαžΆαŸ†αž–αžΆαž“αŸ‹-αž˜αž½αž™αžšαž™-αž αž»αž€αžŸαž·αž”αž”αŸ’αžšαžΆαŸ†

const result = decimal(1234.1234, "-");
// => αž˜αž½αž™αž–αžΆαž“αŸ‹-αž–αžΈαžšαžšαž™-αžŸαžΆαž˜αžŸαž·αž”αž”αž½αž“*αž€αŸ’αž”αŸ€αžŸ*αž˜αž½αž™-αž–αžΈαžš-αž”αžΈ-αž”αž½αž“

const result = integer(-1);
// => Β *αžŠαž€*αž˜αž½αž™

Related

License

MIT License

Copyright (c) 2022 Seanghay Yath

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

πŸ‡°πŸ‡­Convert integer/decimal to Khmer word (0.64kB minified)

Topics

Resources

License

Stars

Watchers

Forks