validate.io-buffer
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "validate.io-buffer", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Validates if a value is a Buffer object.", | ||
@@ -16,5 +16,8 @@ "author": { | ||
"scripts": { | ||
"test": "mocha", | ||
"test-cov": "istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec", | ||
"codecov": "istanbul cover ./node_modules/.bin/_mocha --dir ./reports/codecov/coverage --report lcovonly -- -R spec && cat ./reports/codecov/coverage/lcov.info | codecov && rm -rf ./reports/codecov" | ||
"test": "if [ \"${TRAVIS}\" ]; then npm run test-ci; else npm run test-local; fi", | ||
"test-local": "tape \"./test/*.js\" | tap-spec", | ||
"test-ci": "npm run test-local && xvfb-run npm run test-browsers", | ||
"test-cov": "istanbul cover --dir ./reports/coverage --report lcov tape -- \"./test/*.js\"", | ||
"test-browsers": "browserify ./test/*.js | testling | tap-spec", | ||
"coverage": "istanbul cover --dir ./reports/codecov/coverage --report lcovonly tape -- \"./test/*.js\" && cat ./reports/codecov/coverage/lcov.info | codecov && rm -rf ./reports/codecov" | ||
}, | ||
@@ -42,4 +45,4 @@ "main": "./lib", | ||
"devDependencies": { | ||
"chai": "3.x.x", | ||
"mocha": "2.x.x", | ||
"browserify": "12.x.x", | ||
"chai": "^3.4.1", | ||
"codecov.io": "^0.1.5", | ||
@@ -49,6 +52,7 @@ "istanbul": "^0.4.1", | ||
"jshint-stylish": "2.x.x", | ||
"testling": "^1.7.1" | ||
"tap-spec": "4.x.x", | ||
"tape": "4.x.x", | ||
"testling": "1.x.x" | ||
}, | ||
"testling": { | ||
"harness": "mocha-bdd", | ||
"files": [ | ||
@@ -55,0 +59,0 @@ "test/*.js" |
buffer | ||
=== | ||
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependencies][dependencies-image]][dependencies-url] | ||
[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url] | ||
@@ -14,5 +14,3 @@ > Validates if a value is a [Buffer][node-buffer] object. | ||
For use in the [browser][browser-buffer], use [browserify][browserify]. | ||
## Usage | ||
@@ -36,2 +34,7 @@ | ||
## Notes | ||
* Validates both [Node.js][node-buffer] and [browser][browser-buffer] (polyfill) `Buffer` objects. | ||
## Examples | ||
@@ -59,2 +62,3 @@ | ||
--- | ||
## Tests | ||
@@ -64,3 +68,3 @@ | ||
Unit tests use the [Mocha][mocha] test framework with [Chai][chai] assertions. To run the tests, execute the following command in the top-level application directory: | ||
This repository uses [tape][tape] for unit tests. To run the tests, execute the following command in the top-level application directory: | ||
@@ -91,3 +95,3 @@ ``` bash | ||
This repository uses [Testling][testling] as its browser testing tool. To run the tests in web browsers, execute the following command in the top-level application directory: | ||
This repository uses [Testling][testling] for browser testing. To run the tests in a (headless) local web browser, execute the following command in the top-level application directory: | ||
@@ -98,5 +102,11 @@ ``` bash | ||
[![browser support][testling-image]][testling-url] | ||
To view the tests in a local web browser, | ||
``` bash | ||
$ make view-browser-tests | ||
``` | ||
<!-- [![browser support][browsers-image]][browsers-url] --> | ||
--- | ||
@@ -116,7 +126,7 @@ ## License | ||
[travis-image]: http://img.shields.io/travis/validate-io/buffer/master.svg | ||
[travis-url]: https://travis-ci.org/validate-io/buffer | ||
[build-image]: http://img.shields.io/travis/validate-io/buffer/master.svg | ||
[build-url]: https://travis-ci.org/validate-io/buffer | ||
[codecov-image]: https://img.shields.io/codecov/c/github/validate-io/buffer/master.svg | ||
[codecov-url]: https://codecov.io/github/validate-io/buffer?branch=master | ||
[coverage-image]: https://img.shields.io/codecov/c/github/validate-io/buffer/master.svg | ||
[coverage-url]: https://codecov.io/github/validate-io/buffer?branch=master | ||
@@ -135,5 +145,3 @@ [dependencies-image]: http://img.shields.io/david/validate-io/buffer.svg | ||
[browserify]: https://github.com/substack/node-browserify | ||
[mocha]: http://mochajs.org/ | ||
[chai]: http://chaijs.com | ||
[tape]: https://github.com/substack/tape | ||
[istanbul]: https://github.com/gotwarlost/istanbul | ||
@@ -140,0 +148,0 @@ [testling]: https://ci.testling.com |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6999
144
9