@mich-cook/d64-utils

1.1.0 • Public • Published

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)); }

Readme

Keywords

Package Sidebar

Install

npm i @mich-cook/d64-utils

Weekly Downloads

0

Version

1.1.0

License

AGPL-3.0-only

Unpacked Size

46.6 kB

Total Files

4

Last publish

Collaborators

  • mich-cook