
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
V extends your in-memory variables to also be saved/persisted instantly. Variables are instantly synchronized between all running instances of V in a room. When you (re)start in a room, variables and constants are reloaded/rehydrated automatically.
npm install --save v
or
npm i -S v
Unpkg CDN:
<script src="https://unpkg.com/v/v.min.js"></script>
More CDNs coming soon
If no roomId is passed, a new one will be assigned automatically and printed in the console.
const V = require('v')
const v = new V([roomId])
const V = require('v')
V([roomId,] v => {
})
const V = require('v')
V([roomId]).then(v => {
}).catch(e => {
})
The opts
object has the following options and their default options listed
myOpts = {
roomId: '',
server: 'wss://api.online.vars'
}
Use it:
const v = new V(myOpts)
V comes with extensive debugging logs. Each V instance and constructor-call has it own debug namespace.
In node, enable debug logs by setting the DEBUG
environment variable to *
DEBUG=* node myProgram.js
In the browser, enable debug logs by running this in the developer console:
localStorage.debug = '*'
Disable by running this:
localStorage.removeItem('debug')
GPL-3.0 Copyright © Diego Rodríguez Baquero
FAQs
Secure, Synchronized, Realtime, Cloud, Native JavaScript Variables & Events
The npm package v receives a total of 3,670 weekly downloads. As such, v popularity was classified as popular.
We found that v 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.