@theopenweb/js-functions
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

JS Functions

Introduction

  • Set of general functions that can be used in JavaScript(browser).
  • Code uses ESM.
  • This library SHOULD NOT include any dependencies OTHER THAN devDependencies.
  • Code is made to be efficiently tree-shaken.

Installation

npm install @theopenweb/js-functions

Usage

// Example of import and execution.
import { capitalize } from '@theopenweb/js-functions/src/utilities.js'
console.log(capitalize('smith'))
// For the full API, check "Documentation".

Documentation

Testing

Some important functions are being tested. More tests may be added over time. Tests can be performed in the "tests" folder with npm run test after npm install. Tests may include auto-reporting.

Tests may be incomplete. Please run to check the status.

Coverage

npm run test will automatically show coverage of tests. An HTML coverage report will be generated in the "coverage" directory.

Linting

npm run eslint will generate linting reports.

Contributors

  • Damien Golding

Package Sidebar

Install

npm i @theopenweb/js-functions

Weekly Downloads

7

Version

2.0.1

License

MIT

Unpacked Size

532 kB

Total Files

71

Last publish

Collaborators

  • theopenweb_jp