Skip to content

Commit

Permalink
updated version and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rodney authored and rodney committed Nov 12, 2019
1 parent a3f06bc commit ae5ab7c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
# faa-parser
Node module for parsing various FAA data files.

```javascript
const FAA = require('../index')
const Parser = FAA.Parser

var parser = new Parser(FAA.Airport)

// https://www.faa.gov/air_traffic/flight_info/aeronav/aero_data/NASR_Subscription_2019-06-20
var sourceFile = 'path/to/APT.txt';

var promise = parser.parse(sourceFile, airport => {
return new Promise((resolve, revoke) => {
if (airport.state === 'NV')
console.log(JSON.stringify(airport, null, 2))
resolve();
});
});

promise.then(() => {
console.log('It worked!')
done()
}).catch((err) => {
throw err
});
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aeyrium/faa-parser",
"version": "1.0.2",
"version": "1.0.3",
"description": "Node module for parsing various FAA data files.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -35,4 +35,4 @@
"moment": "^2.24.0",
"n-readlines": "^1.0.0"
}
}
}

0 comments on commit ae5ab7c

Please sign in to comment.