Comparing version 0.0.1 to 0.0.2
#!/usr/bin/env node | ||
var debug = (process.argv.indexOf('--debug') > -1) | ||
// must do this initialization *before* other requires in order to work | ||
if (debug) { | ||
require('debug').enable('perflint:*') | ||
} | ||
var cli = require('../lib/cli') | ||
cli.interpret(process.argv, function(exitCode) { | ||
if ('exitCode' in process) { | ||
process.exitCode = exitCode | ||
} else { | ||
process.on('exit', function() { | ||
process.exit(exitCode) | ||
}) | ||
} | ||
}) |
{ | ||
"name": "perflint", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "Matthew Harrison-Jones <matt+npm@matthojo.co.uk>", | ||
@@ -10,3 +10,7 @@ "description": "A Web page performance checker using WebPageTest.", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R progress ./tests/lib/ --recursive", | ||
"pretest": "npm run-script lint", | ||
"check-coverage": "(istanbul check-coverage --statements 90 --branches 90 --functions 100 --lines 90)", | ||
"coveralls": "cat ./coverage/lcov.info | coveralls", | ||
"lint": "eslint ." | ||
}, | ||
@@ -27,3 +31,24 @@ "repository": { | ||
}, | ||
"homepage": "https://github.com/perflint/perflint#readme" | ||
"homepage": "https://github.com/perflint/perflint#readme", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"coveralls": "^2.11.6", | ||
"eslint": "^2.2.0", | ||
"istanbul": "^0.4.2", | ||
"mocha": "^2.4.5", | ||
"proxyquire": "^1.7.4", | ||
"sinon": "^1.17.3", | ||
"strip-ansi": "^3.0.1" | ||
}, | ||
"dependencies": { | ||
"chalk": "^1.1.1", | ||
"cli": "^0.11.1", | ||
"debug": "^2.2.0", | ||
"exit": "^0.1.2", | ||
"lodash": "^4.5.1", | ||
"progress": "^1.1.8", | ||
"shelljs": "^0.6.0", | ||
"text-table": "^0.2.0", | ||
"webpagetest": "^0.3.4" | ||
} | ||
} |
[![NPM version](https://img.shields.io/npm/v/perflint.svg?style=flat-square)](https://www.npmjs.com/package/perflint) | ||
[![Build Status](https://travis-ci.org/perflint/perflint.svg?branch=master)](https://travis-ci.org/perflint/perflint) | ||
[![Coverage Status](https://coveralls.io/repos/github/perflint/perflint/badge.svg?branch=master)](https://coveralls.io/github/perflint/perflint?branch=master) | ||
# PerfLint | ||
# ![PerfLint](https://cloud.githubusercontent.com/assets/367517/13446841/aa0aed32-e00e-11e5-8ca3-f88ec87ce4ae.png) | ||
PerfLint is a tool to identify unexpected performance levels of a Website, using [WebPageTest](http://www.webpagetest.org/) to obtain results. | ||
@@ -10,8 +13,13 @@ | ||
You can install ESLint using `npm`: | ||
You can install PerfLint using `npm`: | ||
```shell | ||
npm install -g perflint | ||
``` | ||
npm install -g perflint | ||
## Usage | ||
See the [Command Line Interface](https://perflint.readme.io/docs/command-line-interface) docs. | ||
## Configuration | ||
See the [Configuring PerfLint](https://perflint.readme.io/docs/configuring-perflint) docs. |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
32737
20
763
1
25
9
8
5
+ Addedchalk@^1.1.1
+ Addedcli@^0.11.1
+ Addeddebug@^2.2.0
+ Addedexit@^0.1.2
+ Addedlodash@^4.5.1
+ Addedprogress@^1.1.8
+ Addedshelljs@^0.6.0
+ Addedtext-table@^0.2.0
+ Addedwebpagetest@^0.3.4
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbrowser-stdout@1.3.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcli@0.11.3(transitive)
+ Addedcommander@2.10.02.9.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcsv@1.2.1(transitive)
+ Addedcsv-generate@1.1.2(transitive)
+ Addedcsv-parse@1.3.3(transitive)
+ Addedcsv-stringify@1.1.2(transitive)
+ Addeddebug@2.6.82.6.9(transitive)
+ Addeddiff@3.2.0(transitive)
+ Addedentities@1.1.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedexit@0.1.2(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.1.17.2.3(transitive)
+ Addedgraceful-readlink@1.0.1(transitive)
+ Addedgrowl@1.9.2(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@1.0.0(transitive)
+ Addedhe@1.1.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjson3@3.3.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlodash._baseassign@3.2.0(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._basecreate@3.0.3(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._isiterateecall@3.0.9(transitive)
+ Addedlodash.create@3.1.1(transitive)
+ Addedlodash.get@4.4.2(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.5.1(transitive)
+ Addedmocha@3.5.3(transitive)
+ Addedms@2.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprogress@1.1.8(transitive)
+ Addedsax@1.4.1(transitive)
+ Addedshelljs@0.6.1(transitive)
+ Addedstream-transform@0.2.2(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.03.1.2(transitive)
+ Addedtext-table@0.2.0(transitive)
+ Addedwebpagetest@0.3.9(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxml2js@0.4.23(transitive)
+ Addedxmlbuilder@11.0.1(transitive)