VSP JS Helper
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]
> Curated collection of useful JavaScript snippets.
Install
$3
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());
`
$3
`
html
`
`
javascript
console.log(vsp_js_helper.rand_md5());
`
Built in Functions
$3
* parse_args
* array_to_html_attr
* array_to_html
* array_to_window
* plain_object
$3
* microtime
* is_after_date
* is_before_date
* is_same_date
* format_duration
* diff_days
* time_taken
$3
* is_url
$3
* call_user_func
* call_user_func_array
* function_exists
* create_function
* is_callable
$3
* is_tab_focused
* is_window_arg
* scroll_to_top
* copy_to_clip
* scroll_pos
* window_arg
* device_type
* pipe_log
$3
* to_jquery
* is_jquery
$3
* to_js_func
* md5
* counter
* rand_md5
* css_units
$3
* url_params
* query_string
* parse_str
* base64_encode
* base64_decode
* rawurldecode
* rawurlencode
* urldecode
* urlencode
* parse_url`
⬆ Back to top
---
Contribute
If you would like to help, please take a look at the list of
[issues][issues] or the
To Do checklist.
License
This project is licensed under
General Public License v3.0 license. See the
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