UNPKG

siphon-cli

Version:

Simple bundler for web applications. 📦🔧🧡

24 lines (23 loc) • 1.22 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.newTimeStamp = void 0; __exportStar(require("./fs_utils"), exports); __exportStar(require("./parsing_utils"), exports); function newTimeStamp(options) { function nte(unit) { return "".concat(unit.toString().length === 1 ? "0".concat(unit) : unit); } var d = new Date(); return "".concat(nte(d.getHours()), ":").concat(nte(d.getMinutes()), ":").concat(nte(d.getSeconds())).concat((options === null || options === void 0 ? void 0 : options.noDate) ? "" : "|".concat(d.getDay(), "-").concat(d.getMonth(), "-").concat(d.getFullYear())); } exports.newTimeStamp = newTimeStamp;