UNPKG

@gmod/cram

Version:

read CRAM files with pure Javascript

16 lines 499 B
import { LocalFile, RemoteFile } from 'generic-filehandle2'; function open(maybeUrl, maybePath, maybeFilehandle) { if (maybeFilehandle) { return maybeFilehandle; } if (maybeUrl) { return new RemoteFile(maybeUrl); } if (maybePath) { return new LocalFile(maybePath); } throw new Error('no url, path, or filehandle provided, cannot open'); } export { open }; export { LocalFile, RemoteFile } from 'generic-filehandle2'; //# sourceMappingURL=io.js.map