Gathering detailed insights and metrics for @tosee/log
Gathering detailed insights and metrics for @tosee/log
npm install @tosee/log
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
4,853
Last Day
1
Last Week
1
Last Month
9
Last Year
619
2 Stars
88 Commits
1 Watching
1 Branches
1 Contributors
Latest Version
1.4.2
Package Id
@tosee/log@1.4.2
Unpacked Size
40.34 kB
Size
8.82 kB
File Count
18
NPM Version
6.14.12
Node Version
10.24.1
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-66.7%
1
Compared to previous week
Last month
-86.2%
9
Compared to previous month
Last year
-32.5%
619
Compared to previous year
2
logger.Middleware()
后的中间件里的logger打印都会带上该请求的唯一ID
import { Logger } from "@tosee/log"
import koa from 'koa';
const logger = new Logger('my namespace');
const app = new koa();
app.use(logger.Middleware());
app.use(async (ctx) => {
logger.info("test");
});
app.listen(3000);
output
[7831cef0-940c-11ea-ba2e-83ad967e8b38 2020-05-12 12:53:06] GET /
[7831cef0-940c-11ea-ba2e-83ad967e8b38 2020-05-12 12:53:06] test
自定义
import { Logger } from "@tosee/log"
import koa from 'koa';
const logger = new Logger('my namespace',{
withUID:Logger.templete`[${0}] [${1}] [${2}]`,
withoutUID:Logger.templete`[${0}] [${1}]`,
});
const app = new koa();
app.use(logger.Middleware());
app.use(async (ctx) => {
logger.info("test");
});
app.listen(3000);
output
[7831cef0-940c-11ea-ba2e-83ad967e8b38] [2020-05-12] [12:53:06] GET /
[7831cef0-940c-11ea-ba2e-83ad967e8b38] [2020-05-12] [12:53:06] test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
3 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More