1.0.0 • Published 8 years ago
voyages-sncf-parser v1.0.0
voyages-sncf-parser
Parse a Voyages-SNCF confirmation email and extract data (customer, trips, prices)
Install
As a binary:
npm install -g voyages-sncf-parser
As a module:
npm install --save voyages-sncf-parser
Usage
Shell:
$ voyages-sncf-parser email.html > result.json
In your project:
const path = require('path')
const vsncf = require('voyages-sncf-parser')
const filename = path.join(__dirname, 'email.html')
// parsing from a file
const result = vsncf.parseFile(filename)
// parsing from a string
const result = vsncf.parse(contents) // contents should be a plain text, not a HTML
License
Under the MIT license. See LICENSE file for more details.
1.0.0
8 years ago