New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zhi-log

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zhi-log - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

.eslintrc.cjs

38

package.json
{
"name": "zhi-log",
"version": "1.8.0",
"version": "1.9.0",
"type": "module",
"description": "a simple logger for Node and Browser",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"repository": "terwer/zhi",
"homepage": "https://github.com/terwer/zhi/tree/dev/packages/zhi-log",
"homepage": "https://github.com/terwer/zhi/tree/main/apps/zhi-log",
"author": "terwer",
"license": "GPL",
"keywords": [
"zhi-log",
"zhi",
"log"
]
"log",
"zhi-log"
],
"devDependencies": {
"api-docs": "1.0.0",
"esbuild-config-custom": "0.1.0",
"jest-config-custom": "0.1.0",
"eslint-config-custom": "1.0.0",
"tsconfig": "1.0.0"
},
"dependencies": {
"ansi-colors": "^4.1.3",
"callsites": "^4.0.0",
"kleur": "^4.1.5",
"loglevel": "^1.8.1",
"loglevel-plugin-prefix": "^0.8.4",
"zhi-device-detection": "0.1.0",
"zhi-env": "1.13.4"
},
"scripts": {
"dev": "zhi-build --watch",
"build": "zhi-build --production",
"test": "jest --coverage=true --coverageDirectory=../../reports/test/zhi-log",
"lint": "eslint 'src/**/*.{ts,js}' --fix",
"doc": "../../packages/api-docs/node_modules/.bin/api-extractor run --local --verbose",
"md": "../../packages/api-docs/node_modules/.bin/api-documenter markdown -i temp -o ../zhi-docs/src/api/zhi-log && pnpm mdfix",
"mdfix": "pnpm mdfmt && rm ../zhi-docs/src/api/zhi-log/index.md",
"mdfmt": "echo '---\ntitle: zhi-log\n---' | cat - ../zhi-docs/src/api/zhi-log/index.md > ../zhi-docs/src/api/zhi-log/README.md"
}
}

34

README.md

@@ -24,18 +24,38 @@ # zhi-log

├── loglevel-plugin-prefix
├── zhi-device-detection
├── ansi-colors
├── kleur
```
## Building
## Dev
This library was generated with [Nx](https://nx.dev).
```bash
pnpm dev -F zhi-log
```
Run `nx build zhi-log` to build the library.
## Build
## Running unit tests
```bash
pnpm build -F zhi-log
```
Run `nx test zhi-log` to execute the unit tests via [Vitest](https://vitest.dev).
## Api
```bash
pnpm doc -F zhi-log
pnpm md -F zhi-log
```
## Test
Execute the unit tests via [jest](https://jestjs.io/docs/getting-started#via-ts-jest)
```bash
pnpm test -F zhi-log
```
## Publish
```
nx publish zhi-log --ver=0.0.1 --tag=latest
```
pnpm publish -F zhi-log --tag=latest
```
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