An Open Source Amadeus PNR converter.
Install the package
npm i open-pnr
import {pnrParser} from 'open-pnr';
// ....
const parsed = pnrParser(pnrText);
console.log(parsed);
Contributions are welcome and will be fully credited.
Please submit a pull request if you noticed an error or wanted to improve the source code.