Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pfrazee/wsh-grammar
WebShell grammer definition, and parser
https://github.com/pfrazee/wsh-grammar
Last synced: 11 days ago
JSON representation
WebShell grammer definition, and parser
- Host: GitHub
- URL: https://github.com/pfrazee/wsh-grammar
- Owner: pfrazee
- Created: 2016-10-01T21:04:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-01T22:58:28.000Z (about 8 years ago)
- Last Synced: 2024-03-23T10:44:29.914Z (9 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wsh-Grammar
```js
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`