
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
elm-monitor
Advanced tools
Monitor your elm program with redux-devtools during development. It's really just for monitoring and inspecting state and actions. Action replay (time travel) is not supported.
Install the dependency: $ npm install elm-monitor
Import and initialize elm-monitor
in your index.js
:
import monitor from 'elm-monitor';
...
monitor();
Copy or symlink Monitor.elm
into your source folder, via
e.g. ln -s ../node_modules/elm-monitor/src/Monitor.elm src
Import Monitor.elm
into your Main.elm
with import Monitor
Replace Browser.application
with Monitor.application
in your Main.elm
Open Redux Devtools in your browser and reload your app.
You should only use this during development. Elm won't build when Monitor.elm
is used, because it depends on Debug.log
.
Browser.application
?Besides being able to monitor Browser.application
, Monitor.elm
additionally exports:
Monitor.worker
- when using Platform.worker
Monitor.sandbox
- when using Browser.sandbox
Monitor.element
- when using Browser.element
Monitor.document
- when using Browser.document
It's quite simple. Monitor.elm
just logs the state on init
as well as every action and resulting state on update
to the browser console. monitor.js
connects to redux-devtools, patches console.log
to extract messages logged by Monitor.elm
, parses and transforms the log messages using elm/parser
(thx @ChristophP) and passes them over to redux-devtools.
()
-> null
[⟨Ctor⟩, param1, param2]
or String ⟨Nothing⟩
FAQs
Monitor your elm program with redux-devtools
We found that elm-monitor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.