File manager - Edit - /usr/local/lib/node_modules/bower/lib/node_modules/bower-config/node_modules/mout/queryString/getParam.js
Back
var typecast = require('../string/typecast'); var getQuery = require('./getQuery'); /** * Get query parameter value. */ function getParam(url, param, shouldTypecast){ var regexp = new RegExp('(\\?|&)'+ param + '=([^&]*)'), //matches `?param=value` or `¶m=value`, value = $2 result = regexp.exec( getQuery(url) ), val = (result && result[2])? result[2] : null; return shouldTypecast === false? val : typecast(val); } module.exports = getParam;
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings