npm.io
1.1.0 • Published 6 years ago

@mich-cook/d64-utils

Licence
AGPL-3.0-only
Version
1.1.0
Deps
0
Size
45 kB
Vulns
0
Weekly
0

d64-utils

Utilities to work with d64 files (commodore 64 disk images) in node.js

API

attach(filename)

  • loads file contents into instance from filename.
  • does not (will not?) support taking a buffer or a network location

validate()

  • does some very basic validation of the disk

list()

  • displays directory listing of the disk

Example Usage:

const c1541 = require('./c1541.js');

const disk = new c1541();
disk.attach('./myDisk.d64');

console.log(`Disk is valid: ${disk.validate()}`);
console.log(`BAM info:`);
console.log(disk.getBAMInfo());

const listing = disk.list();
if (listing !== null) { listing.forEach(l => console.log(l)); }

Keywords