Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
MEOCloud api wrapper.
npm install meocloud --save
var config = {
auth: {
consumer_key: 'xxxxxxxxxxxxxx',
consumer_secret: 'xxxxxxxxxxxx',
token: 'xxxxxxxxxxxxxx',
token_secret: 'xxxxxxxxxxxxxx';
},
root: 'meocloud', // or sandbox
noSSL: true // default: false
}
var meocloud = require('meocloud')(config);
var meocloud = require('meocloud')(config);
var params = {
query: 'my_search_term'
};
meocloud.search('/', params, function(err, data, status) {
console.log(err, data, status);
});
There's two ways to make file uploads.
The first one, gives you enough flexibility to adapt to your project, but requires you to provide all the code to deal with files, and returns the request object so you can add event listeners to control the progress or whatever. Here's an example:
var meocloud = require('meocloud')(config);
var fs = require('fs');
fs.stat('/file/to/upload.txt', console.log(err, stat) {
if (err) { throw err; }
var fstream = fs.createReadStream('/file/to/upload.txt');
meocloud.putFile('/new/file/path.txt', fstream, stat.size, params, function(err, data, status) {
console.log(err, data, status);
});
});
The second way, uses a helper method that takes care of all the details for you. If you don't need the flexibility of the method above, just use this:
var meocloud = require(meocloud)(config);
var params = { 'overwrite': true }; // add here only the MEOCloud API params
meocloud.upload('/file/to/upload.txt', '/new/file/path.txt', params, function(err, data, status) {
console.log(err, data, status);
});
(Coming soon)
Copyright (c) 2013 Rogério Vicente. Licensed under the MIT license.
FAQs
MEOCloud api wrapper (http://meocloud.pt)
The npm package meocloud receives a total of 2 weekly downloads. As such, meocloud popularity was classified as not popular.
We found that meocloud 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.