chartjs-node-canvas

v4.1.6
A node renderer for Chart.js using canvas.

nvm

cat .nvmrc | nvm use

build

tsc

clean

clean-dest -s ./src -d ./dist --file-map ./scripts/clean-dest --permanent --verbose && echo TODO: Delete .tsbuildinfo?

lint

tslint -p ./tsconfig.json

test

c8 --all mocha dist/**/*.spec.js

test-unit

mocha --exclude dist/**/*.e2e.spec.js dist/**/*.spec.js

test-e2e

mocha dist/**/*.e2e.spec.js

package-size

node ./scripts/package-size

debug-test

node --inspect-brk=33295 --nolazy node_modules/mocha/bin/_mocha dist/**/*.spec.js

watch-build

tsc --watch

watch-clean

nodemon --watch ./src -e ts --exec npm run-script clean

watch-test

nodemon --watch ./dist -e js --exec npm run-script test

docs

jsdoc2md dist/index.js > API.md
npm i chartjs-node-canvas

Metadata

  • MIT
  • Whatever
  • Sean Sobey
  • released 1/18/2022

Downloads

Maintainers