This commit is contained in:
Timo Hocker 2020-04-24 16:13:54 +02:00
parent a5460cd540
commit ee3ac59561
2 changed files with 5 additions and 2 deletions

1
.eslintignore Normal file
View File

@ -0,0 +1 @@
*.d.ts

View File

@ -5,7 +5,9 @@
* Created by Timo Hocker <timo@scode.ovh>, March 2020
*/
// @ts-nocheck
/* eslint-disable no-magic-numbers */
'use strict';
/**
@ -51,7 +53,7 @@ function to_hex (str, encoding = '') {
* @returns {string} hex
*/
function num_to_hex (n) {
return n.toString(16);
return n.toString (16);
}
/**
@ -61,7 +63,7 @@ function num_to_hex (n) {
* @returns {number} number
*/
function hex_to_num (h) {
return parseInt(h, 16);
return parseInt (h, 16);
}
module.exports = {