wsh-grammar

1.0.0 • Public • Published

Wsh-Grammar

const parser = require('wsh-grammar')
parser.parse('get foo ?a b | post bar "c d"') /* => {
  expressions: [
    { method: 'get', url: 'foo', params: { type: 'query', key: 'a', value: 'b' } },
    { method: 'post', url: 'bar', params: { type: 'query', key: 'q', value: 'c d' } }
  ]
}*/
  • To build the parser: npm run build
  • To build the fixtures: npm run build-fixtures
  • To test: npm test

Readme

Keywords

Package Sidebar

Install

npm i wsh-grammar

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • pfraze