Skip to content

webalternatif/js-core

Repository files navigation

License: MIT Tests codecov npm

@webalternatif/js-core

The utility library that would’ve been revolutionary in 2012.

Lightweight, framework-agnostic helpers for data manipulation, DOM handling, events, internationalization and more to come.


Installation

npm install @webalternatif/js-core
yarn add @webalternatif/js-core

Basic Usage

The default export provides pure JavaScript utilities only.

import webf from '@webalternatif/js-core'

webf.unique([1, 2, 2]) // [1, 2]
webf.numberFormat(12345.6789, 2, true, '.', ',') // 12.345,68
webf.isTouchDevice() // true or false

Documentation

Core modules

Additional modules

Tests

This project uses Jest for unit testing.

yarn test

About

A set of Javascript utility functions.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors