Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
blockdevice
Advanced tools
$ npm install blockdevice
var BlockDevice = require( 'blockdevice' )
var device = new BlockDevice({
// A custom 'fs' instance, defaults to require( 'fs' ) (optional)
fs: null,
// A file descriptor, if you have (optional)
fd: null,
// Path to the device
path: null,
// Mode defaults to 'rs+' to bypass local cache (optional)
mode: 'rs+',
// Device block size in bytes (optional)
blockSize: -1,
// Device size in bytes (optional)
size: -1,
// Heads per Track (for CHS addressing)
headsPerTrack: -1,
// Sectors per Track (for CHS addressing)
sectorsPerTrack: -1,
})
BlockDevice( options )
BlockDevice.getPath( id )
device.open( callback( err, fd ) )
device.close( callback( err ) )
device.detectBlockSize( size, step, limit, callback( err, blockSize ) )
device.detectSize( step, callback( err, size ) )
device.partition( options )
device.getLBA( cylinder, head, sector )
device.read( offset, length, buffer, callback( err, buffer, bytesRead ) )
device.readLBA( fromLBA, toLBA, buffer, callback( err, buffer, bytesRead ) )
device.write( offset, buffer, callback( err, bytesWritten ) )
device.writeLBA( fromLBA, buffer, callback( err, bytesWritten ) )
BlockDevice.Partition( device, options )
get partition.blockSize
get partition.sectors
get partition.size
partition.__OOB( lba )
partition.readBlock( from, to, buffer, callback )
partition.writeBlock( from, data, callback )
FAQs
Block Device
The npm package blockdevice receives a total of 24 weekly downloads. As such, blockdevice popularity was classified as not popular.
We found that blockdevice 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.