{"library":"fixed-width-parser","type":"library","category":null,"description":"The `fixed-width-parser` package provides a robust Node.js module for parsing and unparsing data from and to fixed-width string formats. Currently stable at version `3.0.0`, it offers a flexible configuration API where developers define field mappings using an array of objects, specifying `name`, `type` (e.g., 'string', 'int'), `start` index, and `width`. The library handles common parsing challenges such as padding, truncation, default values for undefined fields, and explicit `falsyFallback` options for parsed values. It ships with TypeScript type definitions, making it well-suited for modern TypeScript and JavaScript projects, and primarily targets server-side data processing due to its Node.js engine requirement. While a strict release cadence isn't published, major versions are released to introduce significant features or API adjustments, maintaining a focus on stability and clear API design.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","fixed","fixed width","format","parser","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install fixed-width-parser","imports":["import { FixedWidthParser } from 'fixed-width-parser';","import type { IParseOptions } from 'fixed-width-parser';","const parser = new FixedWidthParser(configArray);"]},{"cmd":"yarn add fixed-width-parser","imports":[]},{"cmd":"pnpm add fixed-width-parser","imports":[]}],"homepage":null,"github":"https://github.com/keawade/fixed-width-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/fixed-width-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/fixed-width-parser/compatibility"}}