Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
const Nubi = require('nubi');
const nubi = new Nubi();
nubi.api.tasks.listTasks({ site: '{MYSITE}' })
.then(console.log)
.catch(console.log)
Authentication - You can either pass NUBI_USERNAME
& NUBI_PASSWORD
containing your basic authentication credentials with each request, or specify them in your environment and they will be automatically used with each request. The credentials-as-arguments take precedence over environment variables if both are present.
All methods accept a single object as an argument with the parameters
as keys
. These are used for replacements in template strings.
listTasks
List a site's tasks.
Parameters:
site
- The site name.taskRecord
Get a task record.
Parameters:
site
- The site name.task
- The task id.listEnvironmentServers
List a site environment's servers.
Parameters:
site
- The site name.env
- The environment name.getServerRecord
Get a server record.
Parameters:
site
- The site name.env
- The environment name.server
- The server name.getServerMaxPHPProcesses
Calculate a server's PHP max processes record.
Parameters:
site
- The site name.env
- The environment name.server
- The server name.deleteDomain
Delete a domain.
Parameters:
site
- The site name.env
- The environment name.domain
- The domain name to delete.purgeVarnishForDomain
Purge the Varnish cache for a domain.
Parameters:
site
- The site name.env
- The environment name.domain
- The domain name to purge.listEnvironmentServers
List an environment's domains.
Parameters:
site
- The site name.env
- The environment name.getDomainRecord
Get a domain record.
Parameters:
site
- The site name.env
- The environment name.domain
- The domain name.addDomain
Add a domain name.
Parameters:
site
- The site name.env
- The environment name.domain
- The domain name to add.deployCode
Deploy code from one site environment to another.
Parameters:
site
- The site name.source
- The source environment name.target
- The target environment name.copyDatabase
Copy a database from one site environment to another.
Parameters:
site
- The site name.db
- The database name.source
- The source environment name.target
- The target environment name.moveDomains
Move domain(s) from one site environment to another.
Parameters:
site
- The site name.source
- The source environment name.target
- The target environment name.deployVCSBranch
Deploy a specific VCS branch or tag to an environment.
Parameters:
site
- The site name.env
- The environment name.copyFiles
Copy files from one site environment to another.
Parameters:
site
- The site name.source
- The source environment name.target
- The target environment name.deleteDatabse
Delete a database.
Parameters:
site
- The site name.db
- The database name.deleteDatabaseBackup
Delete a site environment database instance backup.
Parameters:
site
- The site name.env
- The environment name.db
- The database name.backup
- The backup id.listDatabases
List a site's databases.
Parameters:
site
- The site name.getDatabaseRecord
Get a database record.
Parameters:
site
- The site name.db
- The database name.listEnvironmentDatabaseInstances
List a site environment's database instances.
Parameters:
site
- The site name.env
- The environment name.getDatabaseInstance
Get a database instance.
Parameters:
site
- The site name.env
- The environment name.db
- The database name.getDatabaseInstanceBackups
List a site environment's database instance backups.
Parameters:
site
- The site name.env
- The environment name.db
- The database name.getDatabaseInstanceBackupDetails
Get details about a database instance backup.
Parameters:
site
- The site name.env
- The environment name.db
- The database name.backup
- The backup id.downloadDatabaseInstanceBackup
Download a database instance backup from server.
Parameters:
site
- The site name.env
- The environment name.db
- The database name.backup
- The backup id.addDatabase
Add a database.
Parameters:
site
- The site name.createDatabaseInstanceBackup
Create a database instance backup.
Parameters:
site
- The site name.env
- The environment name.db
- The database name.restoreEnvironmentDatabaseBackup
Restore a site environment database instance backup.
Parameters:
site
- The site name.env
- The environment name.db
- The database name.backup
- The backup id.getSites
List all sites accessible by the caller.
getSiteRecord
Get a site record.
Parameters:
site
- The site name.listSiteEnvironments
Get an environment record.
Parameters:
site
- The site name.getEnvironmentRecord
Get an environment record.
Parameters:
site
- The site name.env
- The environment name.getLogStreamCommand
Retrieve an authenticated command to stream log files for an environment.
Parameters:
site
- The site name.env
- The environment name.installDrupal
Install a Drupal distro or Drush Make file into an environment.
Parameters:
site
- The site name.env
- The environment name.type
- The distro_url
or make_url
.configureLiveDevelopment
Configure Live Development on an environment.
Parameters:
site
- The site name.env
- The environment name.action
- Valid options are enable
or disable
.FAQs
```javascript const Nubi = require('nubi'); const nubi = new Nubi();
The npm package nubi receives a total of 1 weekly downloads. As such, nubi popularity was classified as not popular.
We found that nubi 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.