
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
# Embdr Client for Node.JS
The Node.JS client to communicate with the Embdr REST API
## Installation
You can install the client through NPM
npm install embdr
var Embdr = require('embdr');
// Create a new embdr instance
var embdr = new Embdr('VUT6blsAabPE2Vw7BkDZiCJ45duoBtit');
// Process a file on disk
embdr.process('path/to/my/file.xlsx', {
// Invoked when something went wrong trying to contact the Embdr REST API
'error': function(err) {
console.error('Failed to process a resource');
console.error(err);
},
// Invoked when the upload request finishes
'start': function(resource) {
console.log('Uploaded a resource for processing');
console.log(resource);
},
'thumbnails': {
// Specify the desired sizes of the thumbnails
'sizes': ['64x64', '256x256'],
// Invoked when the thumbnails are ready
'complete': function(thumbnails) {
console.log('Generated thumbnails');
console.log(thumbnails);
}
},
'images': {
// Specify the desired sizes of the image previews. When only one side of the dimension is
// specified, the image will be scaled so the original ratio is retained. Image previews
// will never be scaled up
'sizes': ['768x'],
// Invoked when the image previews are ready
'complete': function(images) {
console.log('Generated images');
console.log(images);
}
},
// Invoked when the entire file has been processed
'complete': function(resource) {
console.log('Completely processed a resource');
console.log(resource);
}
});
The process
function is overloaded and can take other types such as HTTP links:
var url = 'https://upload.wikimedia.org/wikipedia/meta/b/be/Wikipedia-logo-v2_2x.png';
embdr.process(url, {
'complete': function(resource) {
console.log('Completely processed a URL
');
console.log(resource);
}
});
It can also take in any kind of readable stream:
var stream = myFunctionThatReturnsAStream();
embdr.process(stream, {
'complete': function(resource) {
console.log('Completely processed a resource');
console.log(resource);
}
});
TODO
FAQs
The Node.JS client to communicate with the Embdr REST API
The npm package embdr receives a total of 0 weekly downloads. As such, embdr popularity was classified as not popular.
We found that embdr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.