Embed https://www.npmjs.com/package/urlsearchparams directly in package
See original GitHub issueSo we can do stuff like this without needing querystring modules.
let params = new URLSearchParams();
params.append('key', 'foobar');
params.append('language', 'en');
params.append('location', [
coords.latitude,
coords.longitude
].join(','));
params.append('radius', 500);
googleapi.get(
'/maps/api/place/nearbysearch/json',
{ body: params },
(err, res, message) => {
console.log('googleapi', 'err', err,
'res', res, 'message', message);
}
);
Issue Analytics
- State:
- Created 8 years ago
- Comments:7
Top Results From Across the Web
url-search-params - npm
Start using url-search-params in your project by running `npm i url-search-params`. ... This package has been deprecated. Author message:.
Read more >urlsearchparams - npm
Start using urlsearchparams in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >url-search-params-polyfill - npm
a simple polyfill for javascript URLSearchParams. Latest version: 8.1.1, last published: 2 years ago. Start using url-search-params-polyfill ...
Read more >use-url-search-params - npm
Start using use-url-search-params in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >@ungap/url-search-params - npm
Start using @ungap/url-search-params in your project by running `npm i @ungap/url-search-params`. There are 106 other projects in the npm ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay @joshgillies you can try
npm install --save frisbee@1.0.1
from NPM, and you should be able to easily do GET requests with automatic querystring stringification.For example, you can do this:
And it will make a
GET /v1/messages?limit=10&page=2
for you.@joshgillies feel free to join our slack! http://slack.glazed.io/