Skip to content

pfrazee/wsh-grammar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

WebShell grammer definition, and parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published