Package Exports
- yahoo-weather
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yahoo-weather) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-yahoo-weather
node-yahoo-weather is a dead simple node module with zero dependencies.
The code is written using ES2015 and simply transformed back using babel to the dist
directory.
I made this module cause I need it and I feel it may be used by someone, someday. Let's get started! 😁
Installation
Clone the repo or install it from npm
:
npm install yahoo-weather --save
Usage
Dead simple, as I said! Check it:
import weather from 'yahoo-weather';
weather({ q: 'Tehran' }).then(info => {
// Do what you want with `info`!
}).catch(err => {
// Oops! Errors! :(
});
Tests
Run the tests with following script:
npm test
Ideas?
Just fill an issue and describe it. I'll check it ASAP. 😁
Contribution
You can fork the repository, improve or fix it and then send the pull requests back if you want to see them here. I really appreciate that. ❤️
Remember to lint your code before sending pull requests. Execute the linter script by running the following command and fix the errors if you get any.
npm run lint