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.
monaca-lib
Advanced tools
This is a library used to communicate with the Monaca Cloud REST API.
This library uses git submodules. Please following command.
$ git submodule update
or initially
$ git submodule update --init --recursive
From version 2.5.0, clientType: 'lib'
needs to be specified when monaca-lib
is initialized for standalone use.
Example:
var Monaca = require('monaca-lib').Monaca;
var monaca = new Monaca({clientType: 'lib'});
var Monaca = require('monaca-lib').Monaca;
var monaca = new Monaca({clientType: 'lib'});
monaca.login('some@email.com', 'password').then(
function() {
console.log('Succesfully logged in!');
monaca.cloneProject('PROJECT_ID', '/destination/directory').then(
function() {
console.log('Successfully clone project!');
},
function(error) {
console.log('Clone failed: ' + error);
},
function(progress) {
console.log('Downloading ' + progress.path);
}
);
},
function(error) {
console.log('Login failed: ' + error);
}
);
There is also a Localkit
class that is used to connect a local development environment to the Monaca Debugger.
var monacaLib = require('monaca-lib'),
Monaca = monacaLib.Monaca,
Localkit = monacaLib.Localkit;
var monaca = new Monaca({clientType: 'lib'});
var localkit = new Localkit(monaca, '/path/to/project');
localkit.startHttpServer().then(
function() {
localkit.startBeaconTransmitter().then(
function() {
console.log('Localkit will now wait for connections from the Monaca debugger.');
}
);
}
);
To run the tests use the following command:
$ export MONACA_TEST_EMAIL=some@email.org
$ export MONACA_TEST_PASSWORD=password
$ npm test
The documentation is built using JSDoc. Use the following command in the root directory to build the documentation:
$ jsdoc src
The generated documentation can be found in out/index.html
.
FAQs
Monaca cloud and localkit API bindings for JavaScript
The npm package monaca-lib receives a total of 116 weekly downloads. As such, monaca-lib popularity was classified as not popular.
We found that monaca-lib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.