Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 694 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 694 Bytes

helper-js

Some simple helper method for js

installation

npm i aj-helper-js

usage

  import { helperName } from 'aj-helper-js'
  
  const result = helperName(...parameter);

Usages of formDataAssigner

This function will help you to make formData object to any level of data you want. Sometimes it suckes to append data menually.

import { formDataAssigner } from 'aj-helper-js'

let formData = formDataAssigner({name: "Akash"});

//You can also asiign extra data if you want

forData.append('file', 'Your file');

Example

import { addDate } from 'aj-helper-js'
addDate(new Date(), 2);

Testing

Run

npm install
npm run build
npm run test