UNPKG

@esmj/web-metrics

Version:

A lightweight utility for collecting and analyzing web performance metrics, such as navigation timing, paint timing, and user interaction metrics. This package helps developers monitor and optimize the performance of their web applications.

80 lines (79 loc) 2.19 kB
{ "name": "@esmj/web-metrics", "version": "0.1.6", "description": "", "keywords": [ "web", "metrics", "web vitals", "INP", "FCP", "LCP" ], "main": "dist/index", "module": "dist/index", "exports": { ".": { "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "sideEffects": false, "typings": "dist/index.d.ts", "scripts": { "lint": "biome check --no-errors-on-unmatched", "lint:fix": "npm run lint -- --fix --unsafe", "dev": "node_modules/.bin/tsup --dts --watch --onSuccess 'node ./dist/index.mjs'", "test": "node --test --experimental-strip-types", "test:watch": "npm run test -- --watch", "preversion": "npm test && npm run lint && npm run build", "version": "npm run changelog && git add CHANGELOG.md", "postversion": "git push && git push --tags", "commit": "node_modules/.bin/git-cz", "changelog": "node_modules/.bin/conventional-changelog -p angular -i CHANGELOG.md -s -r 1", "build": "node_modules/.bin/tsup --dts", "prepare": "husky install" }, "repository": { "type": "git", "url": "git+https://github.com/mjancarik/esmj-web-metrics.git" }, "author": "Miroslav Jancarik", "license": "MIT", "bugs": { "url": "https://github.com/mjancarik/esmj-web-metrics/issues" }, "lint-staged": { "**/*.{ts,js,mjs}": "npm run lint" }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "config": { "commitizen": { "path": "git-cz" } }, "publishConfig": { "registry": "https://registry.npmjs.org/", "access": "public" }, "homepage": "https://github.com/mjancarik/esmj-web-metrics#readme", "devDependencies": { "@biomejs/biome": "1.9.4", "@commitlint/cli": "^19.8.0", "@commitlint/config-conventional": "^19.8.0", "@typescript-eslint/eslint-plugin": "^8.31.0", "@typescript-eslint/parser": "^8.31.0", "commitizen": "^4.3.1", "conventional-changelog-cli": "^5.0.0", "cz-conventional-changelog": "^3.3.0", "git-cz": "^4.9.0", "husky": "^9.1.7", "lint-staged": "^15.5.1", "prettier": "^3.5.3", "tsup": "^8.4.0" } }