Skip to content
/ utils Public

A collection of functions that makes building components a breeze.

Notifications You must be signed in to change notification settings

wigxel/utils

Repository files navigation

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,
	})