
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
Fake Database could be usefule for mocking REST API during development of an application. Check out REST API for TodoMVC app
var express = require('express');
var app = express();
var FakeDB = require('fake-db');
var db = new FakeDB([
{title: 'foo'},
{title: 'bar'}
]);
app.get('/api/todos', function(req, res) {
db.getCollection().then(function(collection) {
res.json(collection);
});
});
app.listen(3000);
All methods emulate async under the hood and return a promise.
var collection = [
{title: 'foo'},
{title: 'bar'}
];
var db = new FakeDB(collection);
db.getCollection().then(function(collection) {
// [{...}, {...}]
console.log(collection);
});
var collection = [
{title: 'foo'},
{title: 'bar'}
];
var db = new FakeDB(collection);
db.getItem(1).then(function(item) {
// {title: 'foo'}
console.log(item);
});
var collection = [
{title: 'foo'},
{title: 'bar'}
];
var db = new FakeDB(collection);
db.setItem(3)
.then(function() {
return db.getCollection()
})
.then(function(collection) {
// 3
console.log(collection.length);
});
id could be ommited and will be set automatically
var collection = [
{title: 'foo'},
{title: 'bar'}
];
var db = new FakeDB(collection);
db.removeItem(1)
.then(function() {
return db.getCollection()
})
.then(function(collection) {
// 1
console.log(collection.length);
});
FAQs
Fake database to mock REST API
We found that fake-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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.