added all files to project

This commit is contained in:
2022-03-10 10:36:59 +01:00
parent 09dd957b33
commit 46a936d7de
25351 changed files with 3883356 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
const dateformat = require( 'dateformat' );
// noinspection JSUnusedLocalSymbols
module.exports = ( { params: [format, utc = false, date = new Date] } ) => {
return `[${dateformat( date, format, utc )}]`;
}
+12
View File
@@ -0,0 +1,12 @@
function padRight ( str, len = 0 ) {
return str + ' '.repeat( Math.max( len - str.length, 0 ) );
}
function label( { method, params: [len] } ) {
return padRight( `[${method.toUpperCase()}]`, len );
}
module.exports = {
padRight,
label
};
+1
View File
@@ -0,0 +1 @@
module.exports = ( { msg } ) => msg;