mirror of
https://gitlab.com/upRootNutrition/zookeeper.git
synced 2025-06-16 18:35:13 -05:00
feat: init
This commit is contained in:
parent
8379d09058
commit
2cfa016090
2929 changed files with 299087 additions and 3 deletions
8
node_modules/magic-bytes.js/dist/model/toHex.js
generated
vendored
Normal file
8
node_modules/magic-bytes.js/dist/model/toHex.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.fromHex = exports.toHex = void 0;
|
||||
const hex = (num) => new Number(num).toString(16).toLowerCase();
|
||||
const toHex = (num) => `0x${hex(num).length === 1 ? "0" + hex(num) : hex(num)}`;
|
||||
exports.toHex = toHex;
|
||||
const fromHex = (hex) => new Number(hex);
|
||||
exports.fromHex = fromHex;
|
Loading…
Add table
Add a link
Reference in a new issue