Socket
Socket
Sign inDemoInstall

numbered

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    numbered

Stringify any number into words, and parse number strings back to a number


Version published
Maintainers
1
Install size
9.80 kB
Created

Readme

Source

Numbered

NPM version Build status Test coverage Greenkeeper badge

Stringify any number into words, and parse number strings back to a number.

Installation

npm install numbered --save

API

var numbered = require('numbered');

Function

Numbered exposes a single function that accepts either a string or a number. The string will delegate to the parse method and a number will delegate to the stringify method.

Parse

Parses a string into a number as best as possible.

numbered.parse('ninety nine');
// 99

numbered.parse('point two five nine');
// 0.259

Stringify

Stringifies a number to the words.

numbered.stringify(99);
// "ninety nine"

numbered.stringify(0.259);
// "zero point two five nine"

License

MIT

Keywords

FAQs

Last updated on 18 Sep 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc