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.
Wetland is an enterprise grade object-relational mapper (ORM) for node.js.
Note: This module is under active development. While it's usable and well tested, it's not done yet. Some key features are still missing.
The following is a list of the biggest features this ORM provides. For more detailed information, you can look at the tests until the documentation has been written.
To install wetland simply run the following command:
npm i --save wetland
If you're using typescript, the typings are supplied by default. No additional typings have to be installed.
Usage will be documented soon. To give you an idea, here's an implementation example:
const Wetland = require('wetland').Wetland;
const Foo = require('./entity/foo').Foo;
const Bar = require('./entity/foo').Bar;
const wetland = new Wetland({
stores: {
simple: {
client : 'mysql',
connection: {
user : 'root',
database: 'testdatabase'
}
}
},
entities: [Foo, Bar]
});
// Get a manager scope. Call this method for every context (e.g. requests).
let manager = wetland.getManager();
// Get the repository for Foo
let repository = manager.getRepository(Foo);
repository.find({name: 'cake'}).then(results => {
// ...
});
import {Wetland} from 'wetland';
import {Foo} from './entity/Foo';
import {Bar} from './entity/Bar';
const wetland = new Wetland({
stores: {
simple: {
client : 'mysql',
connection: {
user : 'root',
database: 'testdatabase'
}
}
},
entities: [Foo, Bar]
});
// Get a manager scope. Call this method for every context (e.g. requests).
let manager = wetland.getManager();
// Get the repository for Foo
let repository = manager.getRepository(Foo);
repository.find({name: 'cake'}).then(results => {
// ...
});
FAQs
A modern object-relational mapper (ORM) for node.js.
The npm package wetland receives a total of 9 weekly downloads. As such, wetland popularity was classified as not popular.
We found that wetland 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
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.