zipcode-taiwan
Fetch Taiwan's zip code table
Last updated 3 years ago by fredchien .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zipcode-taiwan 
SYNC missed versions from official npm registry.

zipcode-taiwan

Used to get Taiwan's zip code table

NPM

Installation

Install via NPM:

npm install zipcode-taiwan

Usage

var zipcodeTW = require('zipcode-taiwan');

// Fetching raw data
var fetcher = zipcodeTW.fetch();

// Creating a parser to convert raw data to JavaScript object
var parser = zipcodeTW.parse();

parser.on('data', function(data) {
    console.log(data);
});

fetcher.pipe(parser);

Support Stream and Pipe

Here is an example to use stream/pipe to convert data and output string to a file.

var fs = require('fs');
var zipcodeTW = require('zipcode-taiwan');

weatherTW
    .fetch()
    .pipe(zipcodeTW.parse({ outputString: true }))
    .pipe(fs.createWriteStream('zipcode.json'));

License

Licensed under the MIT License

Authors

Copyright(c) 2017 Fred Chien <cfsghost@gmail.com>

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |