Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Manage Deis from your Node apps.
npm install node-deis --save
Create your client first of all.
var NodeDeis = require('./index');
var client = new NodeDeis({
controller : 'deis.yourdomain.com',
secure : true, // Optional
version : 1, // Optional
username : 'awesome_user',
password : 'sup3r5str3ng7h!1!1',
appname : 'myAwesomeDeisApp'
});
All of the properties that aren't marked optional will throw an error if they are missing.
Once you have a client you can connect and start managing your Deis apps right from Node.
client.connect(function(err) {
assert.equal(err, null, 'Bad login details');
});
Once you have connected you will be able to run any of the below commands (provided you have access) rights to perform the below.
NodeDeis.addDomain(String domain, Function callback);
Create a new domain for the application in the client configuration and fire the callback once it has completed with an error (if any).
NodeDeis.addDomain('node-deis-test.yourdomain.com', function(err) {
assert.equal(err, null, 'Something bad happened.');
});
NodeDeis.removeDomain(String domain, Function callback);
Remove a domain from the application in the client configuration and fire the callback once it has completed with an error (if any).
NodeDeis.removeDomain('node-deis-test.yourdomain.com', function(err) {
assert.equal(err, null, 'Something bad happened.');
});
NodeDeis.getAllDomains(Function callback);
Get all the domains for this application.
NodeDeis.getAllDomains(function(err, data) {
assert.equal(err, null, 'Something bad happened.');
// do something with the data array.
});
NodeDeis.getDomain(String domain, Function callback);
Get a specific domain for this application.
NodeDeis.getDomain('node-deis-test.yourdomain.com', function(err, domain) {
assert.equal(err, null, 'Something bad happened.');
// do something with the domain object.
});
FAQs
Manage Deis from your Node apps.
The npm package node-deis receives a total of 1 weekly downloads. As such, node-deis popularity was classified as not popular.
We found that node-deis 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.