A basic parser for Glance.
npm install glance-parser
In a node.js script
var glanceParser = require('glance-parser');
var result = glanceParser.parse("scope > subject");
console.log(result)
Outputs
[
[{"label": "scope", "options": []}],
[{"label": "subject", "options": []}]
]