Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/austinleegordon/filter-zip-codes
Remove unwanted zip/postal codes from CSV and JSON data.
https://github.com/austinleegordon/filter-zip-codes
code csv filter json list postal remove zip
Last synced: 1 day ago
JSON representation
Remove unwanted zip/postal codes from CSV and JSON data.
- Host: GitHub
- URL: https://github.com/austinleegordon/filter-zip-codes
- Owner: AustinLeeGordon
- License: mit
- Created: 2019-05-08T15:00:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T06:09:05.000Z (over 4 years ago)
- Last Synced: 2024-11-08T07:50:47.655Z (8 days ago)
- Topics: code, csv, filter, json, list, postal, remove, zip
- Language: TypeScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# filter-zip-codes
[![Current npm package version](https://img.shields.io/npm/v/filter-zip-codes.svg)](https://www.npmjs.com/package/filter-zip-codes) [![Build Status](https://travis-ci.com/AustinLeeGordon/filter-zip-codes.svg?branch=master)](https://travis-ci.com/AustinLeeGordon/filter-zip-codes)
Keep or remove zip/postal codes from CSV and JSON data.
## Usage
```js
// 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](https://www.austinleegordon.com)