~/Projects/garbage-recycle
git clone https://code.lsong.org/garbage-recycle
garbage-recycle
🚮中国垃圾分类查询
Installation
$ npm install garbage-recycle
Example
const garbageRecycle = require('garbage-recycle');
(async () => {
console.log(garbageRecycle.categories);
const search = await garbageRecycle();
const results = await search('小龙虾');
console.log(results);
})();
server example
const garbageRecycle = require('garbage-recycle');
garbageRecycle.createServer(server => {
server.listen(3000, () => {
console.log('server is running at ', server.address());
});
});
Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by
$ npm install
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
ISC
This work is licensed under the ISC license.