mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-13 11:25:36 +00:00
feat: drop moment dependency
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const moment = require('moment');
|
||||
const handlebars = require('handlebars');
|
||||
const Crypto = require('./crypto/Crypto');
|
||||
const { date } = require('./utils.js');
|
||||
// const BN = require('bn.js');
|
||||
|
||||
const registerHelpers = () => {
|
||||
handlebars.registerHelper('today', () => moment().format('DD.MM.YYYY'));
|
||||
handlebars.registerHelper('today', () => date.toISODate(Date.now(), false));
|
||||
|
||||
handlebars.registerHelper('now', () => moment().format('HH:mm:ss'));
|
||||
handlebars.registerHelper('now', () => date.toISOTime(Date.now(), false));
|
||||
|
||||
handlebars.registerHelper('keyExponentBits', k => Buffer.byteLength(k.e()) * 8);
|
||||
|
||||
|
Reference in New Issue
Block a user