1.0.2 • Published 5 years ago

filter-zip-codes v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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