UNPKG

json-q

Version:

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

13 lines (12 loc) 317 B
<!doctype html> <html> <script src=bundle.js></script> <body> <pre> require('crypto').createHash('sha1').update('abc').digest('hex') == '<span id=ans></span>' </pre> </body> <script> document.getElementById('ans').innerHTML = require('crypto').createHash('sha1').update('abc').digest('hex') </script> </html>