Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 916 Bytes

readme.md

File metadata and controls

41 lines (28 loc) · 916 Bytes

🛠 Super handy JavaScript utilities for frontend development.

Note: This is a work in progress and as such is not well documented or ready-to-use.

Install

$ npm install @mrolaolu/helpers --save

Usage

Let's say you want to use the getFormFields helper...

import { getFormFields } from '@mrolaolu/helpers'

or ...

import getFormFields from '@mrolaolu/helpers/dist/esm/getFormFields'
const formFields = getFormFields(
  document.getElementById('form') as HTMLFormElement
)
// => { email: [email protected], password: Unicorns!, ... }

MIT © olaolu.dev  ·  GitHub @whizkydee  ·  Twitter @mrolaolu