imdb-dataset
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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);

Readme

Keywords

Package Sidebar

Install

npm i imdb-dataset

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

42.2 kB

Total Files

27

Last publish

Collaborators

  • panserbjorn