jhermsmeier / node-blockdevice Goto Github PK
View Code? Open in Web Editor NEWBlock Device
License: MIT License
Block Device
License: MIT License
2) BlockDevice new { fd } device.close():
Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
Since reading & writing to a physical device is proving to be more and more difficult in JS land (see npm/npm#7029 and #1), implement reading & writing as a native addon.
Also, other features that could be added this way:
I'm using the library to correctly override the MBR of an sd card on OS X, however I'm having trouble doing the same on Windows 8, as even when write
returns the correct bytes written, the changes are not reflected on the disk.
var device = new BlockDevice({
path: '\\\\.\\PhysicalDrive1',
mode: 'w+',
size: 512
});
device.write(0, myNewMBRBuffer, callback);
Did you try this yourself? I appreciate if you can give me any clues if you encountered the same issue.
new BlockDevice({ fd: 17 })
.open( function( error ) {
// error = Uncaught TypeError: path must be a string
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.