Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

insert-after

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

insert-after

Insert node after

    0.1.4latest
    GitHub

Version published
Maintainers
1
Weekly downloads
352
decreased by-40.44%

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 25 Apr 2017

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc