🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

since-app-start

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

since-app-start

Get time passed since node.js app start. Similar to performance.now() from browsers.

0.3.3
latest
Source
npm
Version published
Weekly downloads
4.8K
-3.1%
Maintainers
1
Weekly downloads
 
Created
Source

since-app-start

Get time passed since you've started node.js process.

Usage

// 1. Set global.appStartTime before you load any node.js modules.
global[Symbol.for('start-time')] = Date.now()

// 2. The following line would return a prepared for output string.
require('since-app-start').addEntry('Loaded modules')

License

MIT (c) 2016 Paul Miller (http://paulmillr.com)

Keywords

since

FAQs

Package last updated on 01 Aug 2018

Did you know?

Socket

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.

Install

Related posts