
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
dyna-console-timeline
Advanced tools
Debug tool that makes the time a good friend.
The consoleTimeline
works exactly as the console.time
but the report can be consoled or get it as object. This makes easier to debug or write tests.
Track in timeline view, the elapsed time of running tasks.
Create ticks on time calling the consoleTimeline
and whenever you want consoleTimelineReport
.
You can create multiple timelines.
import {consoleTimeline, consoleTimelineReport} from "dyna-console-timeline";
consoleTimeline('Process customer request', 'start');
consoleTimeline('Process customer request', 'load from database');
consoleTimeline('Process customer request', 'calc the debit');
consoleTimeline('Process customer request', 'return to client');
consoleTimeline('Process customer request', 'completed');
consoleTimelineReport('Process customer request');
// consoles
-CTL- [Process customer request] Console Timeline Report Sun Oct 14 2018 08:28:17 GMT+0200 (Central European Summer Time)
-CTL- [Process customer request] 0.000 start
-CTL- [Process customer request] ############## 138.000 load from database
-CTL- [Process customer request] #################### 203.500 calc the debit
-CTL- [Process customer request] ## 17.300 return to client
-CTL- [Process customer request] #### 41.400 completed
-CTL- [Process customer request] total duration 400.200
Create a tick.
Console the tick setting the consoleIt
to true.
Console the report.
To do not console it set the consoleIt
false.
This method always return the ITimeLine object where contains the report of the specific timeline.
interface ITimeline {
ticks: ITick[];
}
interface ITick {
taskName: string;
time: number;
}
Reset all collected data for this timeline.
FAQs
Debug tool, track in timeline the elapsed time
The npm package dyna-console-timeline receives a total of 1 weekly downloads. As such, dyna-console-timeline popularity was classified as not popular.
We found that dyna-console-timeline 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
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.