New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

timing-stats-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timing-stats-cli

timing-stats-cli ================= Instrument your build / deployment process to be able to monitor and investigate improvements using [https://github.com/TheSavior/timing-stats].

latest
npmnpm
Version
0.6.0
Version published
Maintainers
1
Created
Source

timing-stats-cli

Instrument your build / deployment process to be able to monitor and investigate improvements using [https://github.com/TheSavior/timing-stats].

Installation

via npm (node package manager)

$ npm install timing-stats-cli --save-dev

via yarn

$ yarn add timing-stats-cli --dev

Usage

This library provides two command line utilities to help instrument your build.

benchmark

benchmark is used to time a command.

benchmark YOUR-STAGE-NAME COMMAND

examples:

benchmark linters "eslint && rubocop"
benchmark tests mocha

This writes to a temporary file the start and end timestamps for the given subcommand.

add-temp-timing-to-json

At the end of your build or deployment process when all of the commands have been benchmarked, run add-temp-timing-to-json to calculate the length of time for each stage and append the results to an existing JSON file. Pass as an argument the path to the json file it should append to.

example:

add-temp-timing-to-json build_times.json

add-temp-timing-to-json uses environment variables to know how to separate each build. If you use travis, this is done automatically by using TRAVIS_BUILD_NUMBER. Otherwise you will need to set BUILD_IDENTIFIER

FAQs

Package last updated on 03 Feb 2017

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