
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
vanilla-caret-js
Advanced tools
Set and get Caret position (contenteditable or TextArea) using Vanilla JavaScript
$ npm i vanilla-caret-js
const VanillaCaret = require('vanilla-caret-js');
OR
<script src="https://cdn.jsdelivr.net/npm/vanilla-caret-js@1.0.1/dist/VanillaCaret.min.js"></script>
var caret = new VanillaCaret(document.getElementById('root')); // Initialize
caret.setPos(4); // Set
document.getElementById('currentPosition').value = caret.getPos(); // Get
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
):
$ npm install
$ node make # or also `$ npm run default`
$ node make build # or also `$ npm run build`
$ node make serve # or also `$ npm run serve`
FAQs
Set and get Caret position (contenteditable or TextArea) using Vanilla JavaScript
The npm package vanilla-caret-js receives a total of 4,345 weekly downloads. As such, vanilla-caret-js popularity was classified as popular.
We found that vanilla-caret-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.