getcvs
Version:
getcvs @manager-center
43 lines (27 loc) • 685 B
Markdown
台灣便利商店查詢程式 (search for Taiwan CVS)
```
npm install getcvs --save
```
code example:
```
const cvs711 = require('getcvs').cvs711;
const keyword = '台北市大同區承德路';
let get711Stores = async (keyword) => {
const stores = await cvs711.getStrores(keyword);
console.log('stores:', stores);
}
get711Stores(keyword);
```
code example:
```
const city = '台北市';
const area = '大同區';
let getFamilyStore = async (city, area)=>{
let stores = await cvsFamily.getStores(city, area);
console.log('stores:',stores);
}
getFamilyStore(city, area);
```