Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cities module and updated module.js
- Loading branch information
Sagar
authored and
Sagar
committed
Sep 21, 2018
1 parent
f70db09
commit 5cb1d74
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
/* module.js */ | ||
const cities = require('cities'); | ||
|
||
exports.addlog = () => { | ||
console.log(` module.js has loaded`) | ||
var myCity = cities.zip_lookup(10016); | ||
console.log(myCity); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"start": "node index.js" | ||
}, | ||
"dependencies": { | ||
"cities": "^1.1.2", | ||
"node": "10.10.0" | ||
}, | ||
"keywords": [] | ||
|