New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

bmrequesttype

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bmrequesttype - npm Package Compare versions

Comparing version

to
0.0.4

{
"name": "bmrequesttype",
"version": "0.0.3",
"version": "0.0.4",
"description": "Calculate bmRequestType for USB",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,4 +14,8 @@ # bmRequestType

```sh
npm i bmrequesttype
```
```js
const { bmRequestType, DIRECTION, TYPE, RECIPIENT } = require('./bmRequestType');
const { bmRequestType, DIRECTION, TYPE, RECIPIENT } = require('bmrequesttype');
bmRequestType(DIRECTION.Out, TYPE.Class, RECIPIENT.Interface); // 33

@@ -18,0 +22,0 @@ ```