Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
voxel-print
Advanced tools
3D print stuff in voxel.js using ShapeWays
Just do:
npm install voxel-print
First you need to connect to ShapeWays, which is pretty easy to do:
var lpr3d = require("voxel-print")({
username: "Your ShapeWays Username",
password: "Your ShapeWays Password"
});
And then you can print stuff by just calling lpr3d
:
lpr3d(voxels, function(err, result) {
if(err) {
console.log("Error uploading:", err);
return;
}
console.log("Uploaded model:", result.model_id, ", url:", result.url);
});
And that's it! Here are some more details.
var lpr3d = require("voxel-print")(options);
module.exports
opens a connection to ShapeWays web service. You need to specify the following values in options:
username
: The user name of your account at ShapeWayspassword
: The password for your accountapplication_id
: (Optional) An identifier for your specific ShapeWays application.This method returns a callable object that you can use to upload voxel models to ShapeWays directly
lpr3d(voxels[, options], callback(err, results))
Once you've created a connection with the above method, you can invoke it by calling it directly. To do this, you can pass in the following arguments:
voxels
: An instance of a voxel.js engineoptions
: An optional object with paramters you can pass to shapewayscallback(err, results)
: Returns the resulting model object or an error if things broke. results
is a structure that has two fields:
model_id
: The shapeways model idurl
: A url where you can view/buy the model(c) 2013 Mikola Lysenko. BSD
FAQs
3D print voxel models via shapeways
We found that voxel-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
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.