
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
reactive-json-file
Advanced tools
Sync JSON mutations to disk using reactive magic!
Great for removing saving-to-disk concerns when updating a JSON object.
import { openJson } from 'reactive-json-file'
// Open a JSON file
const object = openJson('./data.json')
// No need to save changes to disk, just update the object
object.name = 'John Doe'
npm i reactive-json-file
Open a file (eg. JSON file) and return the object
throttle
<Number>
- Milliseconds to throttle saves by. Saves are already batched at the end of every event-loop, but this adds time-based throttling.
fs
<FileSystemInterface>
(fs) - Pass in a custom file-system. Defaults to native Node.js fs
serialize
/deserialize
<Function>
- Functions to serialize/deserialize the object with. eg. to save output to YAML
import { openJson as openYaml } from 'reactive-json-file'
import yaml from 'js-yaml'
const object = openYaml('./file.yaml', {
serialize: data => yaml.dump(data),
deserialize: string => yaml.load(string)
})
object.message = 'YAML!'
Close a file to disable syncing
Arbitrary new changes are detected by using ES6 Proxy behind the scenes.
FAQs
Reactively sync JSON mutations to disk
The npm package reactive-json-file receives a total of 10 weekly downloads. As such, reactive-json-file popularity was classified as not popular.
We found that reactive-json-file 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.