npmCode StyleMaintainabilityTest CoveragenpmBrowser bundle size jsDelivr hits (npm)GitHub Workflow StatusFOSSA StatusDependencies

Look don't blame me for low test coverage; blame Babel

Tess.js

  • Supports ES5/CJS ✅
  • Supports ESM/ES6 ✅
  • Browser Support (ES5/ESM) ✅
  • Tree-shaking (import/export) ✅

Usage

First, install this with NPM:

npm i --save tess.js

ES Modules:

import * as Tess from 'tess.js'; // get all the named exports

Common JS:

const Tess = require('tess.js');

Browser (ES5):

<script src="https://cdn.jsdelivr.net/npm/tess.js/browser/bundle.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js"></script>

Browser (ESM):

<script type="module">
import * as Tess from 'https://cdn.jsdelivr.net/npm/tess.js/src/esm/index.js';
window.Tess = Tess;
</script>
<!-- You can now use Tess in other script tags -->
<!-- e.g. -->
<script type="module">
console.log(Tess.isNil('Hello'));
</script>

Functions

See the docs.
You can also look at this file for some possile use cases (ignore the import at the top).

License

MIT

FOSSA Status

Others

Vote for functions here!