Gathering detailed insights and metrics for mst-log
Gathering detailed insights and metrics for mst-log
Gathering detailed insights and metrics for mst-log
Gathering detailed insights and metrics for mst-log
npm install mst-log
Typescript
Module System
TypeScript (97.57%)
JavaScript (2.43%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
28 Stars
8 Commits
4 Watchers
11 Branches
1 Contributors
Updated on May 28, 2025
Latest Version
2.0.0
Package Id
mst-log@2.0.0
Unpacked Size
59.50 kB
Size
44.66 kB
File Count
15
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
A console logging middleware for MobX State Tree
yarn add mst-log
1import { addMiddleware, types } from "mobx-state-tree"; 2import { mstLog } from "mst-log"; 3 4// Create your store 5const myStore = types.model({}).create({}); 6 7// Attach the middleware 8addMiddleware(myStore, mstLog());
There are a few options you can provide to control how logging works:
1type Options = { 2 getCallTypeColor: (type: IMiddlewareEventType) => string; 3 getShouldGroupBeCollapsed: (call: IMiddlewareEvent) => boolean; 4 logger: Logger; 5 getTime: () => number; 6};
If theres some aspect you would like to be able to change please do open a PR :)
Thanks go to the redux-logger library for the inspiration in this one.
Thanks goes to these wonderful people (emoji key):
Mike Cann 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/6 approved changesets -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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