Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@miniflare/d1
Advanced tools
Workers D1 module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
@miniflare/d1
Workers D1 module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers. See 📦 D1 for more details.
import { createSQLiteDB } from "@miniflare/shared";
import { D1Database, D1DatabaseAPI } from "@miniflare/d1";
const sqliteDb = await createSQLiteDB(":memory:");
const db = new D1Database(new D1DatabaseAPI(sqliteDb));
await db.exec(
`CREATE TABLE my_table (cid INTEGER PRIMARY KEY, name TEXT NOT NULL);`
);
const response = await db.prepare(`SELECT * FROM sqlite_schema`).all();
console.log(await response);
/*
{
"success": true,
"results": [
{
"type": "table",
"name": "my_table",
"tbl_name": "my_table",
"rootpage": 2,
"sql": "CREATE TABLE my_table (cid INTEGER PRIMARY KEY, name TEXT NOT NULL)"
}
],
...
}
*/
FAQs
Workers D1 module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
The npm package @miniflare/d1 receives a total of 73,519 weekly downloads. As such, @miniflare/d1 popularity was classified as popular.
We found that @miniflare/d1 demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.