Skip to content

ikcede/hinge-data-ts-wrapper

Repository files navigation

Hinge Data Typescript Wrapper

A Typescript wrapper for downloaded Hinge data, which will read an exported matches.json file and wrap everything in Typescript classes.

Some included methods:

  • Get total sent likes
  • Get all matches
  • Get all dates (matches with "We Met" set to "Yes")

Build

Initial setup:

npm install

Compile JS to a build/ directory:

npm build

Test

Testing is set up through Jest and Typescript-Jest

npm test

Docs

Docs are generated through typedoc and also available on the wiki.

npx typedoc

Github wiki style docs

npx typedoc --plugin typedoc-plugin-markdown --plugin typedoc-github-wiki-theme --out docs src/hinge-wrapper.ts