UNPKG

json-q

Version:

Retrieves values from JSON objects (and JavaScript objects) by css-selector-like query (includes attribute filters and array flattening).

9 lines (7 loc) 207 B
var optimist = require('../'); var test = require('tap').test; test('whitespace should be whitespace' , function (t) { t.plan(1); var x = optimist.parse([ '-x', '\t' ]).x; t.equal(x, '\t'); });