vanilla-caret-js
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43230
22
55