Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 584 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 584 Bytes

From callback based API to Promises and finally to async iterator

This repository provides 3 tags for each development phase of the domain model:

  1. callbacks based API
  2. association from Playlist to Track with Promise<Array<Track>>
  3. association from Playlist to Track with AsyncIterable<Track>>

The last implementation on point 3. takes advantage of asynchronous iterators of ECMAScript 2018.

Get started:

npm install
npm run test

To check coverage run: jest --coverage