{"library":"amount","type":"library","category":null,"description":"Lightweight library for formatting amounts and currencies in JavaScript. Version 1.0.6 provides two main functions: `amount()` for number formatting with customizable decimal and thousands separators, and `amount.currency()` for locale-based or fully custom currency formatting. It supports all major currencies (EUR, USD, etc.) with automatic symbol placement and spacing. The package is dependency-free, uses CJS (CommonJS) modules, and is available via npm. Updated infrequently; last release in 2022.","language":"javascript","status":"active","version":"1.0.6","tags":["javascript","amount","formatter"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install amount","imports":["const amount = require('amount');","const { amount } = require('amount');","amount.currency(12345.67, 'USD');"]},{"cmd":"yarn add amount","imports":[]},{"cmd":"pnpm add amount","imports":[]}],"homepage":"https://github.com/kiltjs/amount#readme","github":"https://github.com/kiltjs/amount","docs":null,"changelog":null,"pypi":null,"npm":"amount","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}