1.2.0 • Published 9 years ago

native-js v1.2.0

Weekly downloads
23
License
MIT
Repository
github
Last release
9 years ago

Native JS Helper

Helper for missing native javascript functions. Can be used on Browser or NodeJS.

Using in browser, all methods will available on window object (globally).

Using in NodeJS, all methods will available on both require result and global object (globally).

Usage


Browser
<script type="text/javascript" src="nativejs/dist/nativejs"><script>
var test = function(pa, pb) {
	if (isString(pa) && isFunction(pb) {
		console.log('Cheers!');
	}
}
NodeJS
var native = require('native-js');

var test = function(pa, pb) {
	if (isString(pa) && isFunction(pb)) {
		console.log('Cheers global!');
	}
	
	if (native.isString(pa) && native.isFunction(pb)) {
		console.log('Cheers local!');
	}
}

Read the docs: https://mahdaen.github.io/native-js

1.2.0

9 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.5

9 years ago