1.4.6 • Published 2 years ago

matt-utils v1.4.6

Weekly downloads
18
License
MIT
Repository
github
Last release
2 years ago

matt-utils

Some simple shorthands for some js functions and methods

Install

Use npm:

npm i -D matt-utils

Or pnpm

pnpm i -D matt-utils

Usage

Just import the needed functions into your file

import { addEvent, byId } from 'matt-utils'

addEvent( byId( 'some-selector' ), 'click', ( ev ) => {
  console.log( 'click' );
});

Functions

Check the API documentation.

1.4.6

2 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.0

3 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago