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

vanilla-caret-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilla-caret-js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

index.js

3

package.json
{
"name": "vanilla-caret-js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Set and get Caret position (contenteditable or TextArea) using Vanilla JavaScript",
"main": "index.js",
"jsnext:main": "src/index.js",

@@ -6,0 +7,0 @@ "scripts": {

@@ -7,5 +7,13 @@ Set and get Caret position (contenteditable or TextArea) using Vanilla JavaScript

# Setup
```shell
$ npm i vanilla-caret-js
const VanillaCaret = require('vanilla-caret-js');
```
OR
```javascript
<script src="https://cdn.jsdelivr.net/npm/vanilla-caret-js@1.0.1/dist/VanillaCaret.min.js"></script>
```
# Example Usage
# Example
```javascript

@@ -17,5 +25,4 @@ var caret = new VanillaCaret(document.getElementById('root')); // Initialize

# Development
# Usage
Once you've downloaded the files in this repo please run the following command in your terminal from the project folder (it may require `sudo`):

@@ -22,0 +29,0 @@

Sorry, the diff of this file is not supported yet

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