time-to-uint8array
Version:
node module for converting time to Uint8Array
19 lines (11 loc) • 368 B
Markdown
## time-to-uint8array
`npm install time-to-uint8array`
_A simple node module for converting time to Uint8Array_
<br/>
### How to use
```js
import timeToUint8Array from 'time-to-uint8array';
const timeArray = timeToUint8Array(new Date().getTime());
console.log(timeArray);
// output: Uint8Array(13) [1, 6, 6, 6, 2, 7, 2, 4, 7, 4, 9, 6, 9 ]
```