
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
cloud-print
Advanced tools
Cloud-Print-Nodejs is a node.js module providing convenient apis to perform cloud printing throught various cloud printing service provider.
At this moment only Google Cloud Print is available.
###Construct a cloud print instance
var CloudPrint = require('cloud-print');
var cloud_print = new CloudPrint(
{
service_provider: 'google',
auth: {
client_id: 'YOUR_CLIENT_ID',
client_secret: 'YOUR_CLIENT_SERECT',
redirect_uri: 'REDIRECT_URI',
access_token: 'ACCESS TOKEN',
refresh_token: 'REFRESH_TOKEN'
}
});
###Get user's printer list
var options = {};//extra options for filter
cloud_print.getPrinters(options, function(err, response){});
###Get specific printer info
cloud_print.getPrinter("printer id", function(err, response){})
###Submit a print job
var params = {
title: 'Print job title',
content: 'http://abc.com/123.png',
content_type: 'url', //optional, default = url
printer_id: "123123123123-sdfjjv=123",
tags: ['tag1', 'tag2'],//optional, default = [],
setting: {
reverse_order: {
reverse_order: false
},
page_range: {},
copies: {
'copies': 1
},
color: {
type: 'STANDARD_MONOCHROME',
vendor_id: ''
},
fit_to_page: {
type: 'NO_FITTING'
},
collate: {
collate: false
},
media_size: {
height_microns: 297000,
width_microns: 210000,
is_continuous_feed: false,
vendor_id: ''
},
page_orientation: {
type: 'LANDSCAPE'
},
dpi: {
vertical_dpi: 300,
horizontal_dpi: 300
},
pages_per_side: {
layout: 'LEFT_TO_RIGHT_TOP_TO_BOTTOM',
pages_per_side: 1
},
duplex: {
type: 'NO_DUPLEX'
}
}
};
cloud_print.print(params,function(err, response){});
{
"result":
{
//raw response from service provider.
}
}
refer to Google Cloud Print API
FAQs
The cloud print module
The npm package cloud-print receives a total of 0 weekly downloads. As such, cloud-print popularity was classified as not popular.
We found that cloud-print 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.