insert-after

Insert node after

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
insert-after
000.1.47 years ago9 years agoMinified + gzip package size for insert-after in KB

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