Can be managed using yarn, npm, or jspm.
yarn add @iterable-iterator/consume
npm install @iterable-iterator/consume --save
jspm install npm:@iterable-iterator/consume
Import the library where needed
const {consume, exhaust} = await import( '@iterable-iterator/consume' ) ; // or import {consume, exhaust} from '@iterable-iterator/consume' ;
More examples in the test files.