1.0.0 • Published 4 years ago

imdb-dataset v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

imdb-dataset

Parse data coming from https://www.imdb.com/interfaces/

This library works only with .tsv files, it will read the file line by line and return a mapped object.

List with types of objects

List with parsers

List with parsers

Usage:

import {
  ITitleRating,
  mappedTitleBasic,
  TSVParser,
} from 'imdb-dataset';

const parser = new TSVParser<ITitleRating>({
  filePath: '<absolute-file-path>.tsv',
  columns: mappedTitleBasic,
});

async function test() {
  for await (const rating of parser) {
    console.log(rating);
  }
}

test().catch(console.log);