CDN

Get jsKjs

One script tag. No build step, no npm required. Both files are served from jskjs.org/cdn/ with long-lived caching; subresource-integrity hashes are provided below.

Production (minified)

~20.5 KB on disk, ~7.7 KB over the wire (gzip).

<script src="https://jskjs.org/cdn/jskjs.min.js"
        integrity="sha384-fv3ocC8DYw6j9t/U+Z3AlAMHZTwwMyn03s7wT3p6kLkUV42a7dpos/lt7UiVcK0u"
        crossorigin="anonymous"></script>
Download jskjs.min.js

Development (readable source)

Full comments and readable code — ideal while learning or debugging.

<script src="https://jskjs.org/cdn/jskjs.js"
        integrity="sha384-0et0sxGSB0Y4F9FSWQ2mJML9hpcj/QG0eyrwkJXd94bQkXbh5xS7oJHIKYdEi46T"
        crossorigin="anonymous"></script>
Download jskjs.js

Versioned URLs

VersionFileURL
1.0.0 (latest)Minifiedhttps://jskjs.org/cdn/jskjs.min.js
Sourcehttps://jskjs.org/cdn/jskjs.js

Pinned per-version paths (e.g. /cdn/1.0.0/jskjs.min.js) will be published with the next release. You can also install from the GitHub repository or the github.io mirror.

Module usage

jsKjs also works as a CommonJS module and with bundlers; it registers window.$, window.kj, and window.jsKjs in the browser.

// Bundler / Node with a DOM
const $ = require('./jskjs.js');

// Restore a previously-loaded $ if needed
const j = $.noConflict();