
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
An easy to use package that makes database with JSON.
npm install daniel.db
create()
const DanielDB = require("daniel.db")
const db = new DanielDB({ name: "main" })
add()
// Increases the current value to the key
db.add('joins', 1)
set()
// Sets the key to value
db.set(`name`, 'daniel')
get()
// Get a value from the key
db.get(`name`)
has()
// Returns if the database has the provided key
db.has(`name`)
delete()
// Deletes a key from the database
db.delete(`name`)
deleteAll()
// Deletes all the keys in the database
db.deleteAll()
// Done!
all()
// Returns an array of objects (ID, data)
db.all()
push()
// Pushes a value to the array
db.push(`name`, 'hello')
reset()
// Resets the key in the database to 0
db.reset(`joins`)
WARNING: ⚠
If you're using nodemon
, please use the --ignore
file to ignore all the json files, or else your project will restart every time the database getting updated.
Example:
nodemon fileName.js --ignore *.json
If do you want to run your main file, dont write the [fileName]
in the command.
FAQs
An easy to use package that makes database with JSON.
The npm package daniel.db receives a total of 0 weekly downloads. As such, daniel.db popularity was classified as not popular.
We found that daniel.db 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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.