Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neon-exchange/nash-perf

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neon-exchange/nash-perf

TypeScript implementation of Nash crypto routines

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-36.84%
Maintainers
9
Weekly downloads
 
Created
Source

nash-perf

This is a micro library for reporting performance metrics to the nash telemetry service.

Installation

   yarn add @neon-exchange/nash-perf

Usage

import { PerfClient } from '@neon-exchange/nash-perf'

const client = new PerfClient({
	post: async req => {
        await fetch('https://telemetry.sandbox.nash.io', {
        	method: 'post',
        	body: stringify(req)
    	})
    },
	tag: 'example'
})

conts exampleOperationMeasurement = client.start("exampleOperation")
// Perform expensive operation
exampleOperationMeasurement.end() // finish

// clean up on process end
process.on('SIGINT', () => client.flush())

FAQs

Package last updated on 30 Apr 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc