{"library":"format-quantity","type":"library","category":null,"description":"Format numbers as imperial measurement strings with vulgar fractions, mixed numbers, and Roman numerals. Current stable version is 3.1.0, released on npm with a Node.js >=16 requirement. It ships TypeScript types and is actively maintained. Key differentiators: supports vulgar fraction characters (e.g., '⅞'), mixed number parsing via numeric-quantity, and options like fractionSlash (using Unicode fraction slash) and custom separator. Intended for recipe ingredient formatting where empty string is returned for zero. Alternative to manual fraction conversion; inverse operation available in numeric-quantity package.","language":"javascript","status":"active","version":"3.1.0","tags":["javascript","recipe","ingredient","quantity","number","format","string","fractions","imperial","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install format-quantity","imports":["import { formatQuantity } from 'format-quantity'","<script src=\"https://unpkg.com/format-quantity\"></script>\n<script>\n  FormatQuantity.formatQuantity(1.5);\n</script>","import { formatQuantity } from 'https://cdn.jsdelivr.net/npm/format-quantity/+esm'"]},{"cmd":"yarn add format-quantity","imports":[]},{"cmd":"pnpm add format-quantity","imports":[]}],"homepage":"https://github.com/jakeboone02/format-quantity","github":"https://github.com/jakeboone02/format-quantity","docs":null,"changelog":null,"pypi":null,"npm":"format-quantity","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}