This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dateHolidays from 'https://cdn.skypack.dev/date-holidays'; | |
import { ld } from 'https://x.nest.land/[email protected]/mod.ts' | |
import { parse } from "https://deno.land/std/flags/mod.ts" | |
/** | |
* returns a command line argument by name from the args array | |
*/ | |
const getArg = function(argName: string, args: any[]): string { | |
//@ts-ignore | |
const arg = ld.find(args, (arg: string[]) => arg[0] === argName) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* run with 'deno days --help' | |
*/ | |
import containedPeriodicValues from 'https://cdn.skypack.dev/contained-periodic-values'; | |
import sugarDate from 'https://cdn.skypack.dev/sugar-date'; | |
import { ld } from 'https://x.nest.land/[email protected]/mod.ts' | |
import { parse } from "https://deno.land/std/flags/mod.ts" | |
/** | |
* returns a command line argument by name from the args array | |
*/ |
OlderNewer