CIMB Statement Parser
Deterministic parser for CIMB statement PDFs.
It ships as:
- a CLI:
cimb-statement-parser
- a library export:
parseCimbStatementPdfDeterministic
Install
Local install:
npm install
From a published npm package:
npm install @sabirmgd/cimb-statement-parser
CLI Usage
npx @sabirmgd/cimb-statement-parser /path/to/CIMBClicks.pdf output.json
Or after install:
cimb-statement-parser /path/to/CIMBClicks.pdf output.json
If you omit output.json, the parsed JSON is printed to stdout.
Library Usage
const {
parseCimbStatementPdfDeterministic,
} = require("@sabirmgd/cimb-statement-parser");
async function run(pdfPath) {
const transactions = await parseCimbStatementPdfDeterministic(pdfPath);
console.log(transactions);
}
Verify
Run the regression tests:
npm test
Check the npm tarball contents:
npm run pack:check
Publish
- Bump the version in
package.json.
- Log in to npm:
npm login
npm publish
If you use a scoped package and want it public:
npm publish --access public
Included Files
The published package includes only:
cimb-deterministic.js
index-deterministic.js
pdf-helper.js
README.md