{"library":"parsecurrency","title":"Currency String Parser","description":"The `parsecurrency` package provides a minimalist utility for parsing currency strings, extracting components such as the numerical value, currency symbol, decimal and group separators, and ISO code. Currently at version 1.1.1, the package was last updated over six years ago and appears to be abandoned, with no active development or maintenance. While it supports many common international currency formats, including Indian numbering, it has explicit limitations, notably an inability to process currencies with three decimal places or two-character group separators. Due to its age, it primarily supports CommonJS imports, and users should be aware of potential compatibility issues in modern ESM-only environments and the lack of ongoing security patches or feature enhancements.","language":"javascript","status":"abandoned","last_verified":"Sun Apr 19","install":{"commands":["npm install parsecurrency"],"cli":null},"imports":["const parseCurrency = require('parsecurrency');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const parseCurrency = require('parsecurrency');\n\n// Example 1: Standard international format with symbol and ISO code\nconst result1 = parseCurrency('$123,456.99USD');\nconsole.log('Example 1:', result1);\n/*\nOutput:\n{\n  raw: '$123,456.99USD',\n  value: 123456.99,\n  integer: '123,456',\n  decimals: '.99',\n  currency: 'USD',\n  symbol: '$',\n  decimalSeparator: '.',\n  groupSeparator: ',',\n  sign: ''\n}\n*/\n\n// Example 2: Negative value with symbol prefix\nconst result2 = parseCurrency('-¥578,349,027');\nconsole.log('Example 2:', result2);\n/*\nOutput:\n{\n  raw: '-¥578,349,027',\n  value: -578349027,\n  integer: '-578,349,027',\n  decimals: '',\n  currency: '',\n  symbol: '¥',\n  decimalSeparator: '',\n  groupSeparator: ',',\n  sign: '-'\n}\n*/\n\n// Example 3: European format with space as group separator and comma as decimal\nconst result3 = parseCurrency('10 000,00zł');\nconsole.log('Example 3:', result3);\n/*\nOutput:\n{\n  raw: '10 000,00zł',\n  value: 10000,\n  integer: '10 000',\n  decimals: ',00',\n  currency: 'zł',\n  symbol: '',\n  decimalSeparator: ',',\n  groupSeparator: ' ',\n  sign: ''\n}\n*/","lang":"javascript","description":"Demonstrates parsing various currency string formats, including positive and negative values, with different symbols, group, and decimal separators, returning a structured object.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}