Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1mt142/the-js-helper
The "the-js-helper" package provides various helper functions for JavaScript developers.
https://github.com/1mt142/the-js-helper
fuction helper javascript library module utility
Last synced: 24 days ago
JSON representation
The "the-js-helper" package provides various helper functions for JavaScript developers.
- Host: GitHub
- URL: https://github.com/1mt142/the-js-helper
- Owner: 1mt142
- Created: 2023-05-02T16:06:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-02T19:21:09.000Z (over 1 year ago)
- Last Synced: 2024-10-28T16:53:30.635Z (2 months ago)
- Topics: fuction, helper, javascript, library, module, utility
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/the-js-helper
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# THE-JS-HELPER
The the-js-helper package provides various helper functions for JavaScript developers.
# Installation
```javascript
npm install the-js-helper
```# Usage
## buildQueryString
The buildQueryString function takes an object or nested object and returns a query string that can be used in a URL.
```javascript
import { buildQueryString } from "the-js-helper";
``````javascript
const data = {
limit: 100,
offset: 0,
query: {
color: "red",
size: "medium",
query2: {
ram: "16gm",
query3: {
made_by: "bangladesh",
brand: "ebiponi",
},
},
},
};
``````javascript
const queryString = buildQueryString(data);
console.log(queryString); // limit=100&offset=0&color=red&size=medium&ram=16gm&made_by=bangladesh&brand=ebiponi
```> # [add "?" before string]
> Contributions are welcome! If you have an idea for a new helper function, please open an issue to discuss it. If you would like to contribute code, please fork the repository and submit a pull request.
# License
This package is licensed under ISC the License.