How to use the jju.tokenize function in jju

To help you get started, we’ve selected a few jju examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rlidwka / jju / tokenizer.html View on Github external
function on_textarea_update() {
 try {
  var tokens = jju.tokenize($('textarea').val())
 } catch(err) {
  return console.log(err)
 }
 
 function tr(html) {
  return '' + html + ''
 }
 
 function td(text) {
  var node = $('')
  node.text(text)
  return node[0].outerHTML
 }
 
 $('#tokens .data').remove()

jju

a set of utilities to work with JSON / JSON5 documents

MIT
Latest version published 6 years ago

Package Health Score

67 / 100
Full package analysis