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.
phonegap-soundwave
Advanced tools
Connect middleware to stream a PhoneGap app.
var soundwave = require('phonegap-soundwave');
soundwave.serve();
var soundwave = require('phonegap-soundwave'),
express = require('express'),
app = express();
app.use(soundwave());
app.listen(3000);
var soundwave = require('phonegap-soundwave'),
connect = require('connect'),
app = connect();
app.use(soundwave());
app.listen(3000);
var soundwave = require('phonegap-soundwave'),
http = require('http');
var server = http.createServer(soundwave());
server.listen(3000);
var soundwave = require('phonegap-soundwave');
Returns a http.Server
request listener that is also a compatible
connect
middleware function.
Returns:
Creates a local server to serve up the project. The intended receiver is the PhoneGap App but any browser can consume the content.
Options:
options
port
{Number} to listen on (Default: 3000).[autoreload]
{Boolean} toggle AutoReload watch (default: true).callback
{Function}
e
{Error} is null unless there is an error.
data
{Object}
server
{http.Server} is the server running.address
{String} is the server address.port
{Number} is the server port.Events:
error
is emitted when an error occurs.log
is emitted with server log info.The project is created from the same app template used by the PhoneGap CLI and Cordova CLI. When a template does not exist, it is fetched and saved in the common directory:
~/.cordova/lib/www/phonegap/VERSION/
Options:
options
{Object}
path
{String} is the path to create the project.version
{String} defines the PhoneGap app version.Events:
progress
emits state while downloading the app template.
state
{Object} with received
, total
, and percentage
.error
emitted when an error occurs.
e
{Error}complete
emits when the project has been created.
data
{Object} is indentical to the input options
.Example:
soundwave.create({
path: 'path/to/app',
version: '3.3.0'
})
.on('progress', function(state) {
// only emitted when downloading a template.
// state values are only defined when response supports
// content-length header.
if (state.percentage) {
console.log('downloaded: ' + state.percentage + '%');
}
}
.on('error', function(e) {
// handle error
})
.on('complete', function(data) {
// data.path is the app path
console.log('created project at: ' + data.path);
});
FAQs
Connect middleware to stream a PhoneGap app.
The npm package phonegap-soundwave receives a total of 0 weekly downloads. As such, phonegap-soundwave popularity was classified as not popular.
We found that phonegap-soundwave 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.