loglevelnext
Version:
A modern logging library for Node.js and modern browsers that provides log level mapping to the console
108 lines • 2.66 kB
JSON
{
"name": "loglevelnext",
"version": "6.0.0",
"description": "A modern logging library for Node.js and modern browsers that provides log level mapping to the console",
"license": "MPL-2.0",
"repository": "shellscape/loglevelnext",
"author": "Andrew Powell <andrew@shellscape.org>",
"homepage": "https://github.com/shellscape/loglevelnext",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"engines": {
"node": ">= 18"
},
"files": [
"dist",
"README.md"
],
"keywords": [
"browser",
"console",
"debug",
"error",
"level",
"levels",
"log",
"logger",
"logging",
"loglevel",
"persist",
"persistent",
"plugins",
"prefix",
"trace",
"warn"
],
"devDependencies": {
"@commitlint/cli": "17.8.0",
"@commitlint/config-conventional": "17.8.0",
"@types/node": "^20.8.6",
"@types/sinon": "^10.0.2",
"ava": "^5.3.1",
"chalk": "^4.0.0",
"eslint-config-shellscape": "^6.0.1",
"husky": "^8.0.3",
"lint-staged": "15.0.1",
"nyc": "^15.0.1",
"pre-commit": "^1.2.2",
"sinon": "11.1.1",
"ts-node": "^10.0.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
"types": "./dist/index.d.ts",
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register"
],
"files": [
"test/*.ts"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
],
"*package.json": [
"prettier --write --plugin=prettier-plugin-package"
]
},
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts",
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
"commitlint": "commitlint",
"commitmsg": "commitlint -e $GIT_PARAMS",
"lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:package && pnpm lint:js",
"lint-staged": "lint-staged",
"lint:docs": "prettier --write .github/**/*.md **/README.md",
"lint:js": "eslint --fix --cache src test",
"lint:json": "prettier --write tsconfig.*.json",
"lint:package": "prettier --write **/package.json --plugin=prettier-plugin-package",
"prebuild": "tsc --project tsconfig.json",
"security": "pnpm audit --audit-level high",
"test": "FORCE_COLOR=3 ava"
}
}