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

nt-status

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nt-status

Translate NT statuses to human readable strings

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

NT Status

This is a nodejs helper library use to translate NT Status codes to human readable strings.

It's primary purpose is to print errors messages returned SMB operations in node-libdsm.

Usage

const {StatusCodes, StatusDescriptions} = require('nt-status')

// At some moment in your code, you receive a status code
// Every NT Status codes are defined inside require('nt-status').StatusCodes
const code = StatusCodes.STATUS_OPLOCK_BREAK_IN_PROGRESS
console.log(`Code for STATUS_OPLOCK_BREAK_IN_PROGRESS: 0x${code.toString(16)}`)

// Translate code to human readable string
console.log(`Description for STATUS_OPLOCK_BREAK_IN_PROGRESS: ${StatusDescriptions[code]}`)

FAQs

Package last updated on 24 May 2019

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