Installation
npm
npm install @geoharkat/dlis-parser
The package ships with full TypeScript declarations — no @types/ package needed.
CDN (browser)
Import directly from jsDelivr without any build step:
<script type="module">
import { DLISFile } from
'https://cdn.jsdelivr.net/npm/@geoharkat/dlis-parser/src/index.js';
</script>
Or from unpkg:
<script type="module">
import { DLISFile } from
'https://unpkg.com/@geoharkat/dlis-parser/src/index.js';
</script>
Requirements
Node.js ≥ 16 (ESM,
importsyntax)Browser — any modern browser with
ArrayBuffer,DataView, andTextDecodersupport (Chrome 49+, Firefox 48+, Safari 10.1+)
The library has zero runtime dependencies.
TypeScript
TypeScript declarations are included at types/index.d.ts and registered in
package.json. No extra configuration is needed:
import { DLISFile, RC, ChannelInfo, DecodeResult } from '@geoharkat/dlis-parser';