Skip to content

Commit

Permalink
docs(readme) add exec
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Feb 12, 2014
1 parent 22dd579 commit 5717e7e
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions README.md
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);
}
```

0 comments on commit 5717e7e

Please sign in to comment.