builderman verion 0.1.0, initial commit/release.

This commit is contained in:
2025-05-19 23:05:15 -04:00
parent 0578647c3f
commit ec0ffccdb2
1281 changed files with 218046 additions and 0 deletions

17
node_modules/try-to-catch/lib/try-to-catch.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
'use strict';
module.exports = async (fn, ...args) => {
check(fn);
try {
return [null, await fn(...args)];
} catch(e) {
return [e];
}
};
function check(fn) {
if (typeof fn !== 'function')
throw Error('fn should be a function!');
}