bmrequesttype
Advanced tools
{ | ||
"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 @@ ``` |
1663
1.77%41
10.81%