npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

achctl

v0.1.0

Published

CLI tool for ACH file processing - read, write, validate, and analyze ACH files

Readme

achctl

CLI tool for ACH file processing - read, write, validate, and analyze Nacha-format ACH files.

npm version License

Installation

npm install -g achctl
# or
npx achctl <command>

Commands

Parse ACH File

Convert an ACH file to JSON:

achctl parse payroll.ach --pretty
achctl parse payroll.ach --output payroll.json

Validate ACH File

Validate against Nacha rules:

achctl validate payroll.ach
achctl validate payroll.ach --json

File Summary

Quick overview of an ACH file:

achctl summary payroll.ach
achctl summary payroll.ach --json

Explain (Human-Readable)

Get a detailed, plain-English explanation:

achctl explain payroll.ach
achctl explain payroll.ach --json  # For AI agents

List Entries

View all entries in a file:

achctl entries payroll.ach
achctl entries payroll.ach --csv
achctl entries payroll.ach --json
achctl entries payroll.ach --batch 1  # Specific batch only

Statistics

Analyze file statistics:

achctl stats payroll.ach

Create ACH File

Generate an ACH file from JSON:

achctl create input.json --output payroll.ach

Input JSON format:

{
  "options": {
    "immediateDestination": "231380104",
    "immediateDestinationName": "RECEIVING BANK",
    "immediateOrigin": "121042882",
    "immediateOriginName": "ORIGINATING BANK"
  },
  "batches": [
    {
      "companyName": "ACME CORP",
      "companyIdentification": "1234567890",
      "standardEntryClassCode": "PPD",
      "companyEntryDescription": "PAYROLL",
      "entries": [
        {
          "transactionCode": "22",
          "routingNumber": "231380104",
          "accountNumber": "123456789",
          "amount": 1000.00,
          "individualName": "JOHN SMITH",
          "individualId": "EMP001"
        }
      ]
    }
  ]
}

Validate Routing Number

Check if an ABA routing number is valid:

achctl routing 231380104

Supported SEC Codes

  • PPD - Prearranged Payment and Deposit (payroll, direct deposit)
  • CCD - Corporate Credit or Debit
  • WEB - Internet-Initiated Entry
  • TEL - Telephone-Initiated Entry
  • CTX - Corporate Trade Exchange
  • IAT - International ACH Transaction
  • And all other Nacha SEC codes

Programmatic Usage

import { 
  parseACHFile, 
  validateACHFile, 
  generateACHFile,
  summarizeACHFile 
} from 'achctl';

// Parse an ACH file
const content = fs.readFileSync('payroll.ach', 'utf-8');
const file = parseACHFile(content);

// Validate
const result = validateACHFile(file);
console.log(result.valid); // true/false

// Get summary
const summary = summarizeACHFile(file);
console.log(summary.totalCredits);

// Generate new file
const achContent = generateACHFile(options, batches);

Transaction Codes

| Code | Description | |------|-------------| | 22 | Checking Credit (Deposit) | | 27 | Checking Debit (Withdrawal) | | 32 | Savings Credit (Deposit) | | 37 | Savings Debit (Withdrawal) | | 23/28/33/38 | Prenote variants |

Related Tools

Author

Satyan Avatara - Avatara Consulting

License

Apache-2.0