filter-zip-codes
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

filter-zip-codes

Current npm package version Build Status

Keep or remove zip/postal codes from CSV and JSON data.

Usage

// From CSV
await filterZipCodes(
    // Array of zip codes
    [12345, 67890],
    // Options
    {
        // Keep the zip codes provided (true) or remove them (false)
        // Default: false
        keep: false,
    }
).fromCsv(csvString, headerString);
 
// From JSON
filterZipCodes(
    [12345, 67890]
).fromJson(jsonString, keyString);

License

MIT © Austin Gordon

Package Sidebar

Install

npm i filter-zip-codes

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

42.6 kB

Total Files

17

Last publish

Collaborators

  • austinleegordon