Skip to content

halws/log-formdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@halws/log-formdata

npm version

Simple snippet to console.log FormData values

Install

$ npm install log-formdata --save-dev

Usage

const logFormData = require("log-formdata");
// or use import statement 
// import logFormData from "log-formdata"

const newFormData = new FormData();

newFormData.append('superKey', 'ExtraValue');

logFormData(newFormData);
//=> superKey, ExtraValue

logFormData("123");
//=>Uncaught TypeError: Isn't a FormData object!

About

Simple snippet to console.log FormData values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published