Skip to content

Latest commit

 

History

History
33 lines (31 loc) · 639 Bytes

File metadata and controls

33 lines (31 loc) · 639 Bytes

Build Status

utils

A collection of functions that makes building components a breeze.

Setup

npm install --save @wigxel/utils

To enable logging do well to set the NODE_ENV variable to development. For example

#.env
NODE_ENV=development

OR

{
	"scripts": {
		"dev": "NODE_ENV=development npm run start",
		"start": "...."
	}
}

Transformers

Object to FormData

	const formData = makeFormData({
		firstname: 'John',
		lastname: 'Philip',
		email: "john.philip",
		avatar: File,
	})