Socket
Socket
Sign inDemoInstall

benchmarked

Package Overview
Dependencies
184
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.5 to 0.2.6

12

index.js

@@ -81,3 +81,3 @@ 'use strict';

file.inspect = function() {
return '<' + utils.toTitle(type) + ' ' + this.key + '"' + this.relative + '">';
return '<' + utils.toTitle(type) + ' ' + this.key + '"' + this.relative + '">';
};

@@ -347,5 +347,11 @@

Benchmarked.prototype.dryRun = function(pattern, fn) {
Benchmarked.prototype.dryRun = function(pattern, options, fn) {
if (typeof options === 'function') {
fn = options;
options = {};
}
if (typeof pattern === 'function') {
fn = pattern;
options = {};
pattern = '**/*';

@@ -358,3 +364,3 @@ }

var fixtures = this.filter('fixtures', pattern);
var fixtures = this.filter('fixtures', pattern, options);
var code = this.code;

@@ -361,0 +367,0 @@

{
"name": "benchmarked",
"description": "Easily generate benchmarks from a glob of files.",
"version": "0.2.5",
"version": "0.2.6",
"homepage": "https://github.com/jonschlinkert/benchmarked",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"contributors": [
"James Costian (jamescostian.com)",
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)",
"leesei (https://leesei.github.io)"
],
"repository": "jonschlinkert/benchmarked",

@@ -25,32 +30,33 @@ "bugs": {

"ansi": "^0.3.1",
"base": "^0.8.1",
"base-cwd": "^0.1.6",
"base-option": "^0.7.0",
"benchmark": "^2.1.0",
"base": "^0.13.0",
"base-cwd": "^0.3.4",
"base-option": "^0.8.4",
"benchmark": "^2.1.4",
"define-property": "^0.2.5",
"file-reader": "^1.1.1",
"for-own": "^0.1.4",
"for-own": "^1.0.0",
"has-values": "^0.1.4",
"inflection": "^1.10.0",
"is-glob": "^2.0.1",
"kind-of": "^3.0.2",
"lazy-cache": "^1.0.4",
"log-utils": "^0.1.2",
"micromatch": "^2.3.8",
"mixin-deep": "^1.1.3",
"inflection": "^1.12.0",
"is-glob": "^3.1.0",
"kind-of": "^3.1.0",
"lazy-cache": "^2.0.2",
"log-utils": "^0.2.1",
"micromatch": "^2.3.11",
"mixin-deep": "^1.2.0",
"resolve-glob": "^0.1.8",
"vinyl": "^1.1.1"
"vinyl": "^2.0.1"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-eslint": "^2.0.0",
"gulp-format-md": "^0.1.9",
"gulp-istanbul": "^0.10.4",
"gulp-mocha": "^2.2.0",
"gulp-unused": "^0.1.2",
"gulp-eslint": "^3.0.1",
"gulp-format-md": "^0.1.12",
"gulp-istanbul": "^1.1.1",
"gulp-mocha": "^3.0.0",
"gulp-unused": "^0.2.1",
"memoize-path": "^0.1.2",
"mocha": "^2.4.5"
"mocha": "^3.2.0"
},
"keywords": [
"benchmark"
"benchmark",
"benchmarked"
],

@@ -75,4 +81,4 @@ "verb": {

"base",
"base-cli",
"base-option",
"base-cli",
"base-pkg"

@@ -79,0 +85,0 @@ ]

@@ -1,4 +0,4 @@

# benchmarked [![NPM version](https://img.shields.io/npm/v/benchmarked.svg?style=flat)](https://www.npmjs.com/package/benchmarked) [![NPM downloads](https://img.shields.io/npm/dm/benchmarked.svg?style=flat)](https://npmjs.org/package/benchmarked) [![Build Status](https://img.shields.io/travis/jonschlinkert/benchmarked.svg?style=flat)](https://travis-ci.org/jonschlinkert/benchmarked)
# benchmarked [![NPM version](https://img.shields.io/npm/v/benchmarked.svg?style=flat)](https://www.npmjs.com/package/benchmarked) [![NPM monthly downloads](https://img.shields.io/npm/dm/benchmarked.svg?style=flat)](https://npmjs.org/package/benchmarked) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/benchmarked.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/benchmarked)
Easily generate benchmarks from a glob of files.
> Easily generate benchmarks from a glob of files.

@@ -10,5 +10,11 @@ ## Install

```sh
$ npm install benchmarked --save
$ npm install --save benchmarked
```
Install with [yarn](https://yarnpkg.com):
```sh
$ yarn add benchmarked
```
This is an opinionated wrapper for [benchmarked.js](http://benchmarkjs.com/) to make it easier to do benchmarks. Concept is from [remarkable](https://github.com/jonschlinkert/remarkable/tree/master/benchmark)

@@ -85,3 +91,3 @@

### [.run](index.js#L334)
### [.run](index.js#L329)

@@ -102,38 +108,42 @@ Run the benchmarks.

## Related projects
## About
You might also be interested in these projects:
### Related projects
* [base-cli](https://www.npmjs.com/package/base-cli): Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a… [more](https://www.npmjs.com/package/base-cli) | [homepage](https://github.com/node-base/base-cli)
* [base-option](https://www.npmjs.com/package/base-option): Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme… [more](https://www.npmjs.com/package/base-option) | [homepage](https://github.com/node-base/base-option)
* [base-pkg](https://www.npmjs.com/package/base-pkg): Plugin for adding a `pkg` method that exposes pkg-store to your base application. | [homepage](https://github.com/node-base/base-pkg)
* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base) | [homepage](https://github.com/node-base/base)
* [base-cli](https://www.npmjs.com/package/base-cli): Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a… [more](https://github.com/node-base/base-cli) | [homepage](https://github.com/node-base/base-cli "Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a few plugins, like 'base-store', 'base-options' and 'base-data'.")
* [base-option](https://www.npmjs.com/package/base-option): Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme… [more](https://github.com/node-base/base-option) | [homepage](https://github.com/node-base/base-option "Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.")
* [base-pkg](https://www.npmjs.com/package/base-pkg): Plugin for adding a `pkg` method that exposes pkg-store to your base application. | [homepage](https://github.com/node-base/base-pkg "Plugin for adding a `pkg` method that exposes pkg-store to your base application.")
* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base "Framework for rapidly creating high quality node.js applications, using plugins like building blocks")
## Contributing
### Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/benchmarked/issues/new).
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
## Building docs
### Contributors
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
| **Commits** | **Contributor** |
| --- | --- |
| 29 | [jonschlinkert](https://github.com/jonschlinkert) |
| 2 | [jamescostian](https://github.com/jamescostian) |
| 1 | [leesei](https://github.com/leesei) |
```sh
$ npm install verb && npm run docs
```
### Building docs
Or, if [verb](https://github.com/verbose/verb) is installed globally:
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
To generate the readme, run the following command:
```sh
$ verb
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```
## Running tests
### Running tests
Install dev dependencies:
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
```sh
$ npm install -d && npm test
$ npm install && npm test
```
## Author
### Author

@@ -143,11 +153,11 @@ **Jon Schlinkert**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
## License
### License
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/jonschlinkert/benchmarked/blob/master/LICENSE).
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).
***
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 03, 2016._
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 14, 2017._

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc