Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstrat committed Jan 20, 2018
0 parents commit 063e197
Show file tree
Hide file tree
Showing 16 changed files with 3,546 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.d.ts
26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parser": "typescript-eslint-parser",
"extends": ["airbnb", "prettier", "typescript", "typescript/react", "typescript/prettier"],
"plugins": ["typescript"],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"prettier/prettier": "error",
"import/extensions": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["webpack.config.js", "tests/**/*.{ts,tsx}"]
}
],
"require-jsdoc": 0
},
"settings": {
"import/resolver": {
"node": true,
"typescript": true
},
"import/parsers": {
"typescript-eslint-parser": [".ts", ".tsx", { "comment": true }]
}
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
lib
npm-debug.log
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parser": "typescript",
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 120,
"overrides": [
{
"files": [".*", "*.json"],
"options": { "parser": "json" }
}
]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"lib": true,
"node_modules": true
},
"eslint.enable": true,
"eslint.validate": [
"typescript"
]
}
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# electron-process-reporter

Utility to get extract interesting reports of an Electron application.

## Installation

```bash
$ npm install electron-process-reporter
```

## Usage

```js
import { ProcessStatsReporter } from electron-process-reporter;

const reporter = new ProcessStatsReporter();
reporter.on('report', report => {
console.log(report)
});
// will start polling and emits a report
report.start();
```
Loading

0 comments on commit 063e197

Please sign in to comment.