Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-chinese-numeral

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-chinese-numeral

A function that takes a Number as its argument and returns a Chinese numeral string.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

to-chinese-numeral

A function that takes a Number as its argument and returns a Chinese numeral string.

Install

npm
npm install to-chinese-numeral

yarn
yarn add to-chinese-numeral

Usage

import toChineseNumeral from "to-chinese-numeral"

try {
  const num = toChineseNumeral(156)
  // num =
} catch (error) {
  console.error(error.message)
}

Valid inputs

The input argument has to be a Number, otherwise a TypeError will be thrown.

The input argument has to be in the range [-99999.999, 99999.999], otherwise a RangeError will be thrown.

Credits

This package was inspired by a challenge on codewars.com

Keywords

FAQs

Package last updated on 19 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc