šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
DemoInstallSign in
Socket

server-timify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

server-timify

Parser for the Server-Timing header

1.0.1
latest
Source
npm
Version published
Weekly downloads
5
25%
Maintainers
1
Weekly downloads
Ā 
Created
Source

server-timify

npm version npm size install size code coverage Release Open in Visual Studio Code

ā± Parse and stringifying utility methods for the Server-Timing header. Very forgiving and does not throw any errors for any invalid input.

Install

npm install server-timify
# OR
yarn add server-timify

Usage

import { parse, stringify } from 'server-timify'

parse('cache;desc="Cache Read";dur=23.2')
// [{ name: "cache", description: "Cache Read", duration: 23.2 }]

stringify([{ name: "cache", description: "Cache Read", duration: 23.2 }])
// cache;desc="Cache Read";dur=23.2

Read "Measuring Performance With Server Timing" to learn how to use the Server-Timing header.

License

The code in this project is released under the MIT License.

FOSSA Status

Keywords

server-timing

FAQs

Package last updated on 07 Feb 2022

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