Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cocoon-js-vanilla

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cocoon-js-vanilla

Webpacker compatible cocoon rubygem code (without jQuery dependency) from https://github.com/nathanvda/cocoon

  • 1.5.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6.2K
decreased by-12.29%
Maintainers
1
Weekly downloads
 
Created
Source

cocoon-js-vanilla

Contains the Javascript dependency for the cocoon rubygem without jQuery dependency.

Why

After two days of fighting with cocoon:after-insert not firing, I've decided to do the sane thing and re-write Cocoon JS to vanilla JS without jQuery.

How to use

  • Install the cocoon rubygem as usual
  • yarn add cocoon-js-vanilla
  • In a JS file that relies on the cocoon javascript, import cocoon-js-vanilla at the top of the file

For example, if you're using webpacker and have an application.js entrypoint, you can do:

// app/javascript/packs/application.js
import "cocoon-js-vanilla";
...

Inspired by https://github.com/joerodrig/cocoon-js

FAQs

Package last updated on 29 Feb 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc