node.js - PHP Gregwar/Formidable alternative on NodeJS? -
i use https://github.com/gregwar/formidable before , works me. can't find alternative library in nodejs.
please me.
the gregwar/formidable library parses html form tag object contains form data. can token, default value,... form, modify , post form url. so, can use fake user actions on web.
for example:
let theform = `<form action="/abc"> <input type="hidden" name="token" value="123456"/> <select name="name"> <option value="selected" selected>test</option> <option value="notselected">test</option> </select> </form>`; parseform(theform) .then(res => { console.log(res.data); // {token: 123456, name: 'selected'} }); i want lib can value of html form parseform function.
i don't know formidable far check out quickly, providing easy accessibility form values in php code.
the answer of node body-parser around long time , dependent lots of api , applications
Comments
Post a Comment