-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22dd579
commit 5717e7e
Showing
1 changed file
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,35 @@ | ||
Util.io [![NPM version][NPMIMGURL]][NPMURL] | ||
======= | ||
# Util.io [![NPM version][NPMIMGURL]][NPMURL] | ||
[NPMIMGURL]: https://badge.fury.io/js/util.io.png | ||
[NPM_INFO_IMG]: https://nodei.co/npm/util.io.png?downloads=true&&stars | ||
[NPMURL]: https://npmjs.org/package/util.io "npm" | ||
|
||
Util.io - utilites for vanila js | ||
Util.io - utilites for vanila js. Consist of nice set of functions that works in node and browser. | ||
|
||
## Install | ||
For node: | ||
``` | ||
npm i util.io | ||
``` | ||
For browser: | ||
```html | ||
<script src="lib/util.js" | ||
``` | ||
|
||
## Api | ||
### exec | ||
Check is parameter is function, if it's - executes it with given parameters | ||
Was: | ||
```js | ||
function(callback, p1, p2, pN) { | ||
if (typeof callback === 'function') | ||
callback(p1, p2, pN); | ||
} | ||
``` | ||
Now | ||
```js | ||
function(callback, p1, p2, pN) { | ||
Util.exec(callback, p1, p2, pN); | ||
} | ||
``` |