🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

raekwon

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raekwon

Binds a multi-dimensional array of partial strings and elements to a host element.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Raekwon - Multi-dimensional arrays as dynamic templates.

Binds a multi-dimensional array of partial strings and elements to a host element.

let sub = raekwon.observed(['<div></div>'])
let arr = ['<h1>', 'Test', '</h1>', sub]
let el = document.createElement('test')
let proxy = raekwon(el, arr)
setTimeout(() => {
  el.innerHTML === '<h1>Test</h1><div></div>'
  let div = document.createElement('div')
  div.id = 'test-next'
  proxy.push(div)
  setTimeout(() => {
    el.innerHTML === '<h1>Test</h1><div></div><div id="test-next"></div>'
  }, 10)
}, 10)

FAQs

Package last updated on 21 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts