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.
sails-stdlib
Advanced tools
Standard library for Node/Sails applications. Hand-picked and maintained by the Sails.js core team.
WARNING
The Sails standard library is experimental and may undergo rapid changes until the release of Sails v1.0 later this year (2016).
Standard library for Node/Sails applications.
This package contains a set of hand-picked, trusted modules recommended by the Sails core team.
npm install sails-stdlib --save
var stdlib = require('sails-stdlib');
var Gravatar = stdlib('gravatar'); // << just like doing `require('machinepack-gravatar');`
var Mailgun = stdlib('mailgun'); // << just like doing `require('machinepack-mailgun');`
To report a bug, click here. Someone will look into it ASAP.
In the mean time, if you see how to fix the problem and have a moment to prepare a patch, feel free to submit a pull request to the appropriate repo. Thanks for taking the time to help out!
Please be aware that we can't merge any unsolicited PRs that contain changes to usage, including additional methods or options. With this project, we're trying really hard to keep things consistent between individual methods, and that means being vigilant about the effect of any usage change in the grand scheme of the library.
Please observe the guidelines and conventions laid out in the Sails project contribution guide when opening issues or submitting pull requests.
First, please check out the relevant documentation. If you have further questions or are having trouble, click here.
var stdlib = require('sails-stdlib');
var Gravatar = stdlib('gravatar');
var Mailgun = stdlib('mailgun');
// Get a gravatar for an email address.
// (http://node-machine.org/machinepack-gravatar/get-image-url)
var imageUrl = Gravatar.getImageUrl({
emailAddress: 'amy@gonzales-enterprises.com',
gravatarSize: 400
}).execSync();
// Send an html email.
// (http://node-machine.org/machinepack-mailgun/send-html-email)
Mailgun.sendHtmlEmail({
apiKey: 'key-3432afa32e9401482aba183c13f3',
domain: 'sandbox5f89931913a9ab31130131350101.mailgun.og',
fromEmail: 'harold@example.enterprise',
fromName: 'Harold Greaseworthy',
toName: 'Amy Gonzales',
subject: 'Welcome, Amy!',
htmlMessage: 'Amy,\nThanks for joining our community. If you have any questions, please don\'t hesitate to send them our way. Feel free to reply to this email directly.\n\nSincerely,\nThe Management'
}).exec(function (err) {
if (err) {
console.error('Failed to send email. Details:',err);
return;
}
console.log('Email sent!');
});
We'd like to hear it! The best way to share your ideas is to contribute (see below).
We are constantly looking for ways to improve this library. If we're missing something you need from a particular pack, tweet at @sailsjs to explain your use case and we'll see what we can do. If you're in a hurry, just look up the repo for the package in question from the list below, then create a fork.
Each package in the standard library lives in its own repository:
The CHANGELOG.md file in this repo contains a record of usage changes for all of the packs in the standard library (in other words, any minor or major version bumps to the dependencies listed in the package.json file). This makes the changelog more accurate and easier to update, since it saves contributors from having to maintain individual changelogs in at least 20 different repos.
Dependency versions are pinned, and all releases of sails-stdlib
are carefully tested to ensure strict semantic versioning.
You can install and use any of the packages in this repo individually. Just require the machinepack directly.
Tests for each package are implemented in its repo.
The roadmap for this library is flexible and we're open to ideas. The important thing is that we remain relentlessly focused on stability and versatility, while keeping the library relatively lightweight and the usage intuitive. Secondary to that, most of the immediate-term improvements we're interested in making are related to performance.
Awesome! Tweet @sailsjs and let us know the minimum # of hours per week you'll be able to commit, and someone from the core team will contact you ASAP.
This package, like the Sails framework, is free and open-source under the MIT License.
FAQs
Standard library for Node/Sails applications. Hand-picked and maintained by the Sails.js core team.
The npm package sails-stdlib receives a total of 27 weekly downloads. As such, sails-stdlib popularity was classified as not popular.
We found that sails-stdlib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.