insert-after
v0.1.4
Published
Insert node after
Downloads
3,464
Readme
insert-after
Insert node after
Install
npm install --save insert-after
Usage
import insertAfter from 'insert-after';
const node = document.createElement('div');
insertAfter(node, document.querySelector('.ref'));
API
insertAfter(node, ref)
node
Type: element
Node for insert.
ref
Type: element
Reference node, after which node
will be inserted.
License
MIT