0.2.1 • Published 6 years ago

faster-verify v0.2.1

Weekly downloads
20
License
SEE LICENSE IN LI...
Repository
github
Last release
6 years ago

faster-verify

Now 15% test covered

:white_check_mark: A sample type check package for NodeJS, fast, native

Install

npm install faster-verify --save
# Or
npm install faster-verify --save-dev

Normally, compile will be complete shortly.

If error occurs, you can run it again by your self.

# Goto the folder
cd node_modules/faster-verify
make compile
# Or
npm run compile

Basic usage

Test compile

import {Hello} from 'faster-verify';

console.log(Hello());
// Hello from C++!

Verifys

import a, {isArray, isPrime, isNumber, isString, isFunction, isObject} from 'faster-verify';

console.log(is***(***));
// true/false
console.log(a.IsArray(***), a.Is***(***)); // Important: Not camelcase -> IsArray instead of isArray
// true/false

Performance

c++: checking 654188429 is a prime number
true
native: 1273.028ms
js: checking 654188429 is a prime number
true
js: 2143.402ms

Testing

make tests
# Or
npm test
0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago