Created
August 9, 2018 16:43
-
-
Save ahmehri/df7e103b47dfbc1859fdc96c6902b34f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const queryString = require('query-string'); | |
const result = queryString.stringify({ | |
status: 'ready', | |
page: 0, | |
filterByQuery: 'filter', | |
}) | |
result | |
// spaces (query-string ensures that the query string in URL encoded) | |
console.log(queryString.stringify({ name: 'Ahmed Mehri'})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment