
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
:fairy: lite model for sqlite, mongodb like driver API. make life easy. :surfing_man:
:fairy: lite model for sqlite, mongodb like driver API. make life easy. :surfing_man:
npm i lite-model
or yarn add lite-model
Create a table
CREATE TABLE test.users (
id INT PRIMARY KEY NOT NULL,
name CHAR(50) NOT NULL,
gender CHAR(10) CHECK(gender IN('male', 'female', 'unknown')) NOT NULL,
mail CHAR(128) NOT NULL,
age INT NOT NULL,
createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updatedAt TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
);
insert data
const Model = require('lite-model');
const model = new Model('test.db', 'users');
model.insert({
name: 'tom',
gender: 'male',
age: 30,
mail: 'tommy@hello.cc',
});
model.insert({
name: 'jerry',
gender: 'female',
age: 31,
mail: 'jerry@world.cc',
});
update date:
const res = model.update({id: 1}, { name: 'Tommy'});
console.log(res);
query:
const res = model.findOne({ where: { id: 1 }});
console.log(res);
const users = model.find({
where: { id: {$gte: 1 } },
limit: 10,
offset: 1,
order: { age: 'desc' }
})
console.log(users);
delete
const res = model.findOne({ id: 1 });
console.log(res);
FAQs
:fairy: lite model for sqlite, mongodb like driver API. make life easy. :surfing_man:
The npm package lite-model receives a total of 1 weekly downloads. As such, lite-model popularity was classified as not popular.
We found that lite-model 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.