matt-utils

    1.4.3 • Public • Published

    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.

    Install

    npm i matt-utils

    DownloadsWeekly Downloads

    59

    Version

    1.4.3

    License

    MIT

    Unpacked Size

    50.5 kB

    Total Files

    17

    Last publish

    Collaborators

    • mattiacoll