This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
component-counter with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
$ npm i component-counter
Initialize a new counter on an optional element with optional options.
var Counter = require('component-counter'); var counter = new Counter(); document.documentElement.appendChild(counter.el);
A class to add to each digit.
Initial digits number to create.
Set the total number of digits to
Add a digit element.
Ensure at least
n digits are available.
Update count to