UNPKG

xport-js

Version:

Node.js library to read SAS XPORT v5/v6 data transport files (*.xpt).

29 lines (24 loc) 576 B
import Filter from "js-array-filter"; export interface Options { dsNames?: string[]; rowFormat?: "object" | "array"; keep?: string[]; encoding?: BufferEncoding; skipHeader?: boolean; filter?: Filter; roundPrecision?: number; } export interface Header { sasSymbol: string[]; sasLib: string; sasVer: string; sasOs: string; sasCreate: string; sasModified: string; } export interface UniqueValues { [name: string]: { values: (string | number | boolean | null)[] counts: {[name: string]: number} }; }