string utility functions in javascript
Install Node.js on your computer. To install JavaScript Library please use the following command.
npm install js_str_utils
mention in the package.js
"devDependencies": {
"js_str_utils": "1.4.2"
}
const stringApi = require('js_str_utils');
let str = '';
console.log(stringApi.isString(str));
true
convert object to query param
let domain = 'https://api.github.com'
let queryStr = stringApi.objToQueryStr({users: 'kedman1234', id: 10})
console.log(`${domain}${queryStr}`);
https://api.github.com/?users=kedman1234&id=834949
To see all methods, input and results please visit
https://kedarvijaykulkarni.github.io/string-utils/