https://github.com/varunsridharan/vsp-js-helper
https://github.com/varunsridharan/vsp-js-helper
html javascript-library jquery
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/varunsridharan/vsp-js-helper
- Owner: varunsridharan
- License: gpl-3.0
- Created: 2018-10-23T01:23:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T03:26:32.000Z (almost 3 years ago)
- Last Synced: 2025-08-23T18:08:11.594Z (about 2 months ago)
- Topics: html, javascript-library, jquery
- Language: JavaScript
- Homepage:
- Size: 1020 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VSP JS Helper
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]> Curated collection of useful JavaScript snippets.
## Install
### NPM
You can install this via NPM using below cmd
> `npm install vsp-js-helper`> --- OR --
> `npm install vsp-js-helper --save-dev`
```javascript
let $js_helper = require('vsp-js-helper');
console.log($js_helper.rand_md5());
```### Manual
```html```
```javascript
console.log(vsp_js_helper.rand_md5());
```## Built in Functions
### Array & Object
* [`parse_args`](#parse_args)
* [`array_to_html_attr`](#array_to_html_attr)
* [`array_to_html`](#array_to_html)
* [`array_to_window`](#array_to_window)
* [`plain_object`](#plain_object)### Date & Time
* [`microtime`](#microtime)
* [`is_after_date`](#is_after_date)
* [`is_before_date`](#is_before_date)
* [`is_same_date`](#is_same_date)
* [`format_duration`](#format_duration)
* [`diff_days`](#diff_days)
* [`time_taken`](#time_taken)### Data Type Validation
* [`is_url`](#is_url)### Run Time.
* [`call_user_func`](#call_user_func)
* [`call_user_func_array`](#call_user_func_array)
* [`function_exists`](#function_exists)
* [`create_function`](#create_function)
* [`is_callable`](#is_callable)### Browser
* [`is_tab_focused`](#is_tab_focused)
* [`is_window_arg`](#is_window_arg)
* [`scroll_to_top`](#scroll_to_top)
* [`copy_to_clip`](#copy_to_clip)
* [`scroll_pos`](#scroll_pos)
* [`window_arg`](#window_arg)
* [`device_type`](#device_type)
* [`pipe_log`](#pipe_log)### jQuery
* [`to_jquery`](#to_jquery)
* [`is_jquery`](#is_jquery)### Others
* [`to_js_func`](#to_js_func)
* [`md5`](#md5)
* [`counter`](#counter)
* [`rand_md5`](#rand_md5)
* [`css_units`](#css_units)### URL.
* [`url_params`](#url_params)
* [`query_string`](#query_string)
* [`parse_str`](#parse_str)
* [`base64_encode`](#base64_encode)
* [`base64_decode`](#base64_decode)
* [`rawurldecode`](#rawurldecode)
* [`rawurlencode`](#rawurlencode)
* [`urldecode`](#urldecode)
* [`urlencode`](#urlencode)
* [`parse_url`](#parse_url)
[⬆ Back to top](#manual)---
## Contribute
If you would like to help, please take a look at the list of
[issues][issues] or the [To Do](#-todo) checklist.## License
This project is licensed under **General Public License v3.0 license**. See the [LICENSE](LICENSE) file for more info.## Copyright
2017 - 2018 Varun Sridharan, [varunsridharan.in][website]If you find it useful, let me know :wink:
You can contact me on [Twitter][twitter] or through my [email][email].
## Backed By
| [![DigitalOcean][do-image]][do-ref] | [![JetBrains][jb-image]][jb-ref] | [![Tidio Chat][tidio-image]][tidio-ref] |
| --- | --- | --- |[twitter]: https://twitter.com/varunsridharan2
[email]: mailto:varunsridharan23@gmail.com
[website]: https://varunsridharan.in
[issues]: issues/[do-image]: https://vsp.ams3.cdn.digitaloceanspaces.com/cdn/DO_Logo_Horizontal_Blue-small.png
[jb-image]: https://vsp.ams3.cdn.digitaloceanspaces.com/cdn/phpstorm-small.png?v3
[tidio-image]: https://vsp.ams3.cdn.digitaloceanspaces.com/cdn/tidiochat-small.png
[do-ref]: https://s.svarun.in/Ef
[jb-ref]: https://www.jetbrains.com
[tidio-ref]: https://tidiochat.com[downloads-image]: http://img.shields.io/npm/dm/vsp-js-helper.svg
[npm-url]: https://www.npmjs.com/package/vsp-js-helper
[npm-image]: http://img.shields.io/npm/v/vsp-js-helper.svg