Home Manual Reference Source

Overview

Installation

Can be managed using jspm or npm.

jspm

jspm install npm:@collection-abstraction/counter

npm

npm install @collection-abstraction/counter --save

Usage

The code needs a ES2015+ polyfill to work, for example regenerator-runtime/runtime.

await import( 'regenerator-runtime/runtime.js' ) ;
// or
import 'regenerator-runtime/runtime.js' ;

Then

const number = await import( '@collection-abstraction/counter' ) ;
// or
import number from '@collection-abstraction/counter' ;

Examples

See Python's docs: