import url from 'url' ; import querystring from 'querystring' ; param path const parseQueryString = ( path ) => { const parsedUrl = url . parse ( path ) ; if ( parsedUrl . query ) { return querystring . parse ( parsedUrl . query ) ; } return undefined ; } ; export default parseQueryString ;