1.0.1 • Published 3 years ago

@maricode1111/date-lib v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago
  • a simple datetime lib

Challenge 0: Setup Project Challenge 1: Create Class to instantiate Date obj Challenge 2: Human readable values: year month date hour mins secs Challenge 3: Format method that takes a "mask" string default formatted date with no parameters List of formatting characters: 'Y' -> 2019 (Year full) 'y' -> 19 (Year short) 'M' -> July (Month full) 'm' -> Jul (Month short) 'D' -> 01 (date padded) 'd' -> 1 (date) 'H' -> 05 (Hours padded) 'h' -> 5 (Hours) 'I' -> 08 (Minutes padded) 'i' -> 8 (Minutes) 'S' -> 04 (Seconds padded) 's' -> 4 (Seconds) Stretch: Add Day of Week Stretch: Add short Day of Week TODO: Add 12/24 hour Challenge 4: when() method Stretch: when() edge cases Stretch: make work for hours, min, seconds Stretch: include date & time Challenge 5: Document date-lib with JSDoc Challenge 6: Write Unit Tests Challenge 7: Publish to npm with these badges: npm version license size GitHub Issues Stretch: .toPrimitive() to return String or Num depending on context References Date Format By Country Wiki https://en.wikipedia.org/wiki/Date_format_by_country Luxon https://moment.github.io/luxon/

ababacorn-walkacorn-globalsansi-escapesajvansi-stylesansi-regexargparseacornarr-diffarr-flattenarr-unionanymatchassert-plusassign-symbolsasynckitatobaws-sign2array-uniquebabel-plugin-istanbulbabel-jestasn1babel-preset-jestbabel-plugin-jest-hoistbalanced-matchbabel-preset-current-node-syntaxbasebcrypt-pbkdfbracesbrace-expansioncache-basebuffer-frombserbrowserslistcamelcasecaniuse-litecaselesscapture-exitchalkci-infocjs-module-lexerchar-regexcliuicollect-v8-coveragecallsitescollection-visitcolor-namecolor-convertcolorettecomponent-emittercombined-streamcopy-descriptorconcat-mapconvert-source-mapcross-spawncore-util-iscssomdashdashcssstyledata-urlsdecamelizedebugdecimal.jsdeep-isdecode-uri-componentdelayed-streamdiff-sequencesdomexceptionecc-jsbnelectron-to-chromiumemitteryemoji-regexend-of-streamerror-exescaladeescape-string-regexpescodegenesprimaestraverseexec-shesutilsexecaexitexpand-bracketsexpectextendextend-shallowextglobextsprintffast-deep-equalfast-json-stable-stringifyfast-levenshteinfb-watchmanfill-rangefind-upfor-inform-datacobrowser-process-hrtimedefine-propertydeepmergeforever-agentfs.realpathfragment-cachefunction-bindaws4detect-newlinegensyncget-caller-fileget-valuegetpassget-streamglobalsglobgrowlygraceful-fshar-validatorhar-schemahashas-flaghas-valuehas-valuesfseventshtml-escaperhtml-encoding-snifferhttp-signaturehuman-signalsiconv-liteinheritsimport-localinflightis-accessor-descriptoris-arrayishis-ciget-package-typehosted-git-infois-descriptoris-data-descriptoris-core-moduleis-dockerimurmurhashis-generator-fnis-numberis-bufferis-plain-objectis-typedarrayis-potential-custom-element-nameis-streamis-fullwidth-code-pointis-extendableis-wslisexeis-windowsisobjectistanbul-lib-instrumentistanbul-lib-coverageistanbul-reportsjest-changed-filesjest-cliistanbul-lib-reportistanbul-lib-source-mapsjest-diffjest-configjest-docblockjest-get-typejest-haste-mapjest-jasmine2jest-leak-detectorjest-eachjest-environment-jsdomjest-environment-nodejest-matcher-utilsjest-message-utiljest-pnp-resolverjest-mockjest-regex-utiljest-resolve-dependenciesjest-resolvejest-runtimejest-serializerjest-snapshotjest-utiljest-validatejest-runnerjs-yamljsbnjsdomjest-watcherjest-workerjs-tokensjson-schemajson-parse-even-better-errorsjsescjson-schema-traversejson-stringify-safejson5levenjsprimkleurlines-and-columnslevnkind-oflocate-pathlodashmap-cachemakeerrormake-dirlru-cachemap-visitmerge-streammimic-fnmicromatchminimatchmixin-deepmime-typesmime-dbnanomatchminimistnice-trynode-modules-regexpmsnatural-comparenode-int64normalize-package-datanode-releasesnormalize-pathoauth-signnode-notifiernwsapiobject-visitnpm-run-pathobject-copyobject.pickoncep-finallyp-limitp-locateoptionatorp-each-seriesonetimep-trypath-existspath-is-absolutepascalcasepath-parseperformance-nowparse-jsonparse5pkg-dirpath-keypiratespicomatchposix-character-classesprelude-lspunycodepretty-formatpumppslpromptsread-pkgqsregex-notreact-isread-pkg-uprepeat-elementrequestrepeat-stringremove-trailing-separatorrequest-promise-corerequire-directoryresolve-cwdrequest-promise-nativerequire-main-filenameresolve-urlresolve-fromrsvpsafe-bufferrimrafresolvesafe-regexsafer-bufferretsaneset-blockingset-valueshebang-regexshellwordssignal-exitshebang-commandsaxessemversnapdragonsnapdragon-utilslashsnapdragon-nodesisteransisource-mapsource-map-resolvesource-map-supportsource-map-urlspdx-correctsplit-stringspdx-exceptionssshpkstatic-extendsprintf-jsstealthy-requirespdx-license-idsspdx-expression-parsestring-widthstack-utilsstrip-ansistrip-eofstring-lengthstrip-final-newlinestrip-bomsymbol-treesupports-hyperlinkssupports-colorterminal-linkthroattmplto-object-pathto-fast-propertiesto-regextest-excludetunnel-agentto-regex-rangetr46type-checktough-cookietweetnaclunion-valuetypedarray-to-bufferuniversalifyunset-valueurixtype-festtype-detecturi-jsusevalidate-npm-package-licensev8-to-istanbulverroruuidw3c-xmlserializerwalkerw3c-hr-timewebidl-conversionswhatwg-urlwhatwg-mimetypewhatwg-encodingwhich-moduleword-wrapwrappywrap-ansiwrite-file-atomicxml-name-validatorwhichxmlcharswsy18nyallistclass-utilsyargs-parseryargsisstreamisarray
1.0.1

3 years ago

1.0.0

3 years ago