waybill-parser

1.0.0 • Public • Published

Waybill-parser

Usage

const config = {
  url: 'http://www.test.com/regex',
  user: 'derp',
  password: 'derpina'
}

const parser = require('waybill-parser')(config)

parser.applyWaybillMasks('WI000446501', 1)
.then((result) => {
  //it should print { waybill: 'WI0004465', parcelId: '01' }
  console.log(result)
})
.catch((error) => {
  //it will be called if the waybill cannot be parsed
})

Readme

Keywords

Package Sidebar

Install

npm i waybill-parser

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • dicom