Socket
Socket
Sign inDemoInstall

perflint

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perflint - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.editorconfig

19

bin/perflint.js
#!/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)
})
}
})

31

package.json
{
"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"
}
}

16

README.md
[![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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc