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

elo7-format-amd

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elo7-format-amd

A small lib to format string to number and vice versa

  • 1.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
297
increased by14.67%
Maintainers
1
Weekly downloads
 
Created
Source

Format-amd

Format-amd string/number library

Format.js is a library that converts string to number or the opposite. This library uses amd structure. Currently, we support currency formats.

Build Status

Install

Install : npm install elo7-format-amd

Dependency

Format-amd depends on an amd implementation. We suggest define-async implementation for dependency lookup.

Example

define(['format'], function(format) {
	format.currency(17.2, 'R$'); // Returns R$ 17,20
	format.currencyToNumber('R$ 9,50'); // Returns 9.5
});

License

Format-amd is released under the BSD. Have at it.


Copyright :copyright: 2014 Elo7

Keywords

FAQs

Package last updated on 04 May 2020

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