airline-codes 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/airlines.dat +84 -67
- package/airlines.json +101 -67
- package/convert.js +1 -1
- package/package.json +3 -3
- package/.npmignore +0 -1
package/convert.js
CHANGED
|
@@ -9,7 +9,7 @@ var readStream = fs.createReadStream('airlines.dat');
|
|
|
9
9
|
var writeStream = fs.createWriteStream('airlines.json');
|
|
10
10
|
|
|
11
11
|
var transformer = csv.transform(function(data) {
|
|
12
|
-
return _.
|
|
12
|
+
return _.zipObject(columns, data);
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
readStream
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "airline-codes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Airline codes (IATA) and information pulled from OpenFlights.org.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"JSONStream": "^1.0.4",
|
|
27
27
|
"backbone": "^1.1.2",
|
|
28
|
-
"csv": "^
|
|
29
|
-
"lodash": "
|
|
28
|
+
"csv": "^5.1.3",
|
|
29
|
+
"lodash": "~> 4.17.21"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
node_modules/
|