Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "perftrace", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Record PerformanceEntry objects from Node.js and the Web in the Trace Event Format, so that it can be visualized on https://ui.perfetto.dev.", | ||
@@ -10,5 +10,12 @@ "repository": { | ||
"homepage": "https://github.com/RaisinTen/perftrace?tab=readme-ov-file#perftrace", | ||
"main": "index.js", | ||
"main": "index.mjs", | ||
"type": "module", | ||
"exports": { | ||
"import": "index.mjs", | ||
"require": "index.cjs" | ||
}, | ||
"scripts": { | ||
"test": "node --test" | ||
"test": "npm run test:node && npm run test:browser", | ||
"test:node": "node --test \"test/node-test.cjs\"", | ||
"test:browser": "wtr --playwright --browsers chromium firefox webkit --node-resolve test/browser-test.mjs" | ||
}, | ||
@@ -22,3 +29,8 @@ "keywords": [ | ||
"author": "Darshan Sen", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4-fix.0", | ||
"@web/test-runner": "^0.18.1", | ||
"@web/test-runner-playwright": "^0.11.0" | ||
} | ||
} |
@@ -6,1 +6,19 @@ # perftrace | ||
![](./docs/examples/tracing-requires/perfetto.png) | ||
The code for this example is available [here](docs/examples/tracing-requires). | ||
Check out <a href="https://dev.to/raisinten/visualize-performance-issues-in-your-javascript-application-4cnc">the blog <img src="https://avatars2.githubusercontent.com/u/13521919?s=200&v=4" width="25px"></a>! | ||
## Install | ||
``` | ||
npm i perftrace | ||
``` | ||
## Usage | ||
Check out the [API documentation](docs/api) and the [code examples](docs/examples). | ||
## License | ||
This project is available under the [MIT license](https://opensource.org/license/MIT). See [LICENSE](LICENSE) for the full license text. |
5272
5
75
24
Yes
3