UNPKG

craydent-date

Version:

Node module to extend fs/file system functionality and simplify code for maintainability and readability

33 lines (32 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /*/---------------------------------------------------------/*/ /*/ Craydent LLC node-v0.9.0 /*/ /*/ Copyright 2011 (http://craydent.com/about) /*/ /*/ Dual licensed under the MIT or GPL Version 2 licenses. /*/ /*/ (http://craydent.com/license) /*/ /*/---------------------------------------------------------/*/ /*/---------------------------------------------------------/*/ ///<reference path="./global.vars.d.ts" /> //#region imports //@ts-ignore const __common_1 = require("./private/__common"); //#endregion typeDefs if (!__common_1.$c.MODULES_LOADED[__common_1.info.name]) { const __logModule = require('./private/__logModule').default; __logModule(__common_1.info.name); const ext = require('./protected/_ext').default; const prototypes = require('./__prototypes'); ext(Date, "equals", prototypes._equals, true); ext(Date, 'format', prototypes._format, true); ext(Date, 'getDayOfYear', prototypes._getDayOfYear, true); ext(Date, "getValue", prototypes._getValue); ext(Date, 'getWeek', prototypes._getWeek); ext(Date, 'isValidDate', prototypes._isValidDate); __common_1.$c.now = __common_1.$c.now || prototypes.now; __common_1.$c.CDate = __common_1.$c.CDate || prototypes.CDate; //#region global __common_1.$c.globalize(); //#endregion global } exports.default = __common_1.$c;