![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
checkerboardjs
Advanced tools
Easily draw transparency pattern on canvas when flattenning images
Easily draw transparency pattern on canvas when flattenning images
Dependency-free, 1.7kB gzipped. Idk if it's large it literally has 40 lines unpacked, and 1024 chars in total packed, if u really care about each byte, stop using javascript and canvas bro
$ npm i checkerboardjs
drawPattern(canvas<HTMLCanvasElement>, ?options<Object>)
Property | Type | Default | Description |
---|---|---|---|
centered | bool | false | Draws pattern from center instead of left top corner |
ignoreWarnings | bool | false | Ignores any errors and warnings |
primaryColor | string | #EDEDED | CSS color of even cells |
secondaryColor | string | #C6C6C6 | CSS color of odd cells |
size | number | 10 | Size of cell in pixels |
import drawPattern from 'checkerboardjs'
const canvas = document.querySelector('canvas')
drawPattern(canvas)
blah blah blah go find something better to do and don't bother me
FAQs
Easily draw transparency pattern on canvas when flattenning images
The npm package checkerboardjs receives a total of 4 weekly downloads. As such, checkerboardjs popularity was classified as not popular.
We found that checkerboardjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.