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

currency-to-words

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-to-words

Converting currency to words

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
226
increased by50.67%
Maintainers
1
Weekly downloads
 
Created
Source

Currency To Words

Introduction

Converts Currency Numbers (including decimal points) into words.

Samples

  • 1 --> one dollar

  • 25.1 --> twenty-five dollars and ten cents

  • 0.01 --> zero dollars and one cent

  • 45100 --> forty-five thousand one hundred dollars

  • Custom currency

    • 25.1 --> twenty-five cedis and ten pesewas

Install

npm install currency-to-words --save

Usage

import { CurrencyToWords } from 'currency-to-words'
const words = CurrencyToWords(0.01);
const customCurrency = CurrencyToWords(0.01, 'cedi', 'pesewa' );

OR

const words = CurrencyToWords('105');
const customCurrency = CurrencyToWords('105', 'cedi', 'pesewa' );

TODO

  • Supporting other languages

Meisam Malekzadeh

Keywords

FAQs

Package last updated on 16 Apr 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