crema
v0.1.5
Published
syntactic sugar for your javascript functions
Downloads
538
Readme
Example
var routes = crema('request -method=GET OR -method=POST authorize -> login');
Output:
[
{
"type": "request",
"tags": {
"method": "get"
},
"path": {
"value": "login",
"segments": [
{
"value": "login",
"param": false
}
]
},
"thru": {
"path": {
"value": "authorize",
"segments": [
{
"value": "authorize",
"param": false
}
]
}
}
}
]
Syntax
crema('type -tag=value route OR route2');