## Purpose [Tabix](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3042176/) is a popular tool that enables fast access to compressed data. A stated goal of the tool is to "enable genome viewers to support huge data files and remote custom tracks over net
npm install tabix-readerTwo modes are supported: urlReader (from remote URLs that support HTTP Range requests) and blobReader
(from a local file). In both cases, the target must have been processed via tabix first, and the path to the index
file must be explicitly specified.
If you are using the pre-built dist/main.js version, symbols can be accessed under the global window.tabix variable.
``js`
tabix.urlReader(url, indexUrl).then((reader) => {
var callback = (rows, error) => {
console.log(rows);
};
reader.fetch("1", 546375, 1046375, callback);
});
Or they can be imported via ES6 modules and then used as normal:
`js``
import { blobReader } from 'tabix-reader';