UNPKG

json-q

Version:

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

28 lines (22 loc) 388 B
// Copyright 2014 Simon Lydell // X11 (“MIT”) Licensed. (See LICENSE.) function u(url) { return "code\n/*# sourceMappingURL=" + url + " */" } function read(x) { return function() { return x } } function Throws(x) { throw new Error(x) } function identity(x) { return x } module.exports = { u: u, read: read, Throws: Throws, identity: identity }