Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

easier way to configure options #535

Closed
its-dibo opened this issue Dec 19, 2019 · 3 comments · Fixed by #544
Closed

easier way to configure options #535

its-dibo opened this issue Dec 19, 2019 · 3 comments · Fixed by #544

Comments

@its-dibo
Copy link

we can configure options this way:

let form = new Formidable({
 key:value
})

and form.set(key,value) or form.set({key:value})

instead of repeatedly

form.key1=value
form.key2=value
form.key3=value

so, we can shortcut the command as the following:

new Formidable({...options}).parse(...)
@GrosSacASac
Copy link
Contributor

good idea

@tunnckoCore
Copy link
Member

You can do it that way currently too. I always did it that way. Readme/docs updates are coming.

@its-dibo
Copy link
Author

its-dibo commented Jan 6, 2020

You can do it that way currently too. I always did it that way. Readme/docs updates are coming.

Good news

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants