{"id":40678,"library":"btrz-formatter","title":"btrz-formatter","description":"A formatter library by Betterez, version 1.4.0. It provides simple string and number formatting utilities. The library is lightweight with no external dependencies, but lacks active maintenance and detailed documentation. It is primarily used internally by Betterez and may not be suitable for broader use.","status":"maintenance","version":"1.4.0","language":"javascript","source_language":"en","source_url":"https://github.com/Betterez/btrz-formatter","tags":["javascript","Formatting","btrz","Betterez"],"install":[{"cmd":"npm install btrz-formatter","lang":"bash","label":"npm"},{"cmd":"yarn add btrz-formatter","lang":"bash","label":"yarn"},{"cmd":"pnpm add btrz-formatter","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package exports a Formatter class as a named export. CommonJS require works but is not typical for this package.","wrong":"const Formatter = require('btrz-formatter')","symbol":"Formatter","correct":"import { Formatter } from 'btrz-formatter'"},{"note":"formatMoney is a named export, not a default export.","wrong":"import formatMoney from 'btrz-formatter'","symbol":"formatMoney","correct":"import { formatMoney } from 'btrz-formatter'"},{"note":"Case-sensitive: export is lowercase 'packaging'.","wrong":"import { Packaging } from 'btrz-formatter'","symbol":"packaging","correct":"import { packaging } from 'btrz-formatter'"}],"quickstart":{"code":"import { Formatter, formatMoney } from 'btrz-formatter';\nconst formatter = new Formatter();\nconst result = formatMoney(1234.56, 'USD');\nconsole.log(result); // '$1,234.56'\n","lang":"typescript","description":"Demonstrates basic usage: create a Formatter instance and format a monetary amount."},"warnings":[{"fix":"Consider migrating to a more actively maintained formatter library like 'accounting' or 'numeral'.","message":"The package is in maintenance mode and may not receive updates.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use ES module import syntax for proper type inference.","message":"Importing with require may cause type issues in TypeScript.","severity":"gotcha","affected_versions":">=1.4.0"},{"fix":"Check the actual source code for export names.","message":"The export names are not documented; case sensitivity matters.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.4.0':10 'activ':29 'betterez':8,40,52 'broader':47 'btrz':2,51 'btrz-formatt':1 'depend':26 'detail':32 'document':33 'extern':25 'format':17,50 'formatt':3,5 'intern':38 'javascript':49 'lack':28 'librari':6,20 'lightweight':22 'mainten':30 'may':42 'number':16 'primarili':36 'provid':12 'simpl':13 'string':14 'suitabl':45 'use':37,48 'util':18 'version':9","created_at":"2026-06-04T18:48:44.242568+00:00","updated_at":"2026-06-04T18:48:44.242568+00:00","problems":[{"fix":"Use formatMoney directly: import { formatMoney } from 'btrz-formatter'; formatMoney(value, currency);","cause":"Importing formatMoney as a method on Formatter instance instead of standalone function.","error":"TypeError: formatter.formatMoney is not a function"},{"fix":"Run npm install btrz-formatter","cause":"Package not installed or not found in node_modules.","error":"Cannot find module 'btrz-formatter'"},{"fix":"Use 'Formatter' instead: import { Formatter } from 'btrz-formatter';","cause":"Attempting to import a non-existent export named 'Format' (should be 'Formatter').","error":"Module '\"btrz-formatter\"' has no exported member 'Format'."}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Betterez/btrz-formatter","github":"https://github.com/Betterez/btrz-formatter","docs":null,"changelog":null,"pypi":null,"npm":"btrz-formatter","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}