New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cuties/date

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cuties/date

Cutie extension for work with Date object in JavaScript.

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

cutie-date

NPM Version Build Status codecov

Cutie extension for work with Date object in JavaScript. It's based on the Async Tree Pattern.

Examples

You can find examples of using this library in the test directory.

Install

npm install @cuties/date

Run test

npm test

Run build

npm run build

Usage

const {
  // Needed async objects here from the table below
} = require('@cuties/date');

For more information about parameters in the async objects visit MDN docs for Date global object.

Async ObjectAsync/sync callParameters(default value/description)Representation result
Datenew Date(...params)...paramsdate
DateAsStringdate.toStringdatestring
DateJSONdate.toJSONdatejson
DateStringdate.toDateStringdatestring
DateValuedate.valueOfdateprimitive value
DateWithDayOfMonthdate.setDatedate, daydate
DateWithFullYeardate.setFullYeardate, yeardate
DateWithHoursdate.setHoursdate, hoursdate
DateWithMillisecondsdate.setMillisecondsdate, millisecondsdate
DateWithMinutesdate.setMinutesdate, minutesdate
DateWithMonthdate.setMonthdate, monthdate
DateWithSecondsdate.setSecondsdate, secondsdate
DateWithTimedate.setTimedate, timedate
DateWithUTCDayOfMonthdate.setUTCDatedate, daydate
DateWithUTCFullYeardate.setUTCFullYeardate, yeardate
DateWithUTCHoursdate.setUTCHoursdate, hoursdate
DateWithUTCMillisecondsdate.setUTCMillisecondsdate, millisecondsdate
DateWithUTCMinutesdate.setUTCMinutesdate, minutesdate
DateWithUTCMonthdate.setUTCMonthdate, monthdate
DateWithUTCSecondsdate.setUTCSecondsdate, secondsdate
DateWithUTCTimedate.setUTCTimedate, timedate
DateWithYeardate.setYeardate, yeardate
DayOfMonthdate.getDatedatenumber
DayOfWeekdate.getDaydatenumber
FullYeardate.getFullYeardatenumber
GMTStringdate.toGMTStringdatestring
Hoursdate.getHoursdatenumber
ISOStringdate.toISOStringdatestring
LocaleDateStringdate.toLocaleDateStringdate, ...argsstring
LocaleTimeStringdate.toLocaleTimeStringdate, ...argsstring
Millisecondsdate.getMillisecondsdatenumber
Minutesdate.getMinutesdatenumber
Monthdate.getMonthdatenumber
NowDate.nowdate
ParsedDateDate.parsedatenumber(ms)
Secondsdate.getSecondsdatenumber
Timedate.getTimedatenumber(ms)
TimeStringdate.toTimeStringdatestring
TimezoneOffsetdate.getTimezoneOffsetdatenumber
UTCDate.UTC...paramsnumber(ms)
UTCDayOfMonthdate.getUTCDatedatenumber
UTCDayOfWeekdate.getUTCDaydatenumber
UTCFullYeardate.getUTCFullYeardatenumber
UTCHoursdate.getUTCHoursdatenumber
UTCMillisecondsdate.getUTCMillisecondsdatenumber
UTCMinutesdate.getUTCMinutesdatenumber
UTCMonthdate.getUTCMonthdatenumber
UTCSecondsdate.getUTCSecondsdatenumber
UTCStringdate.toUTCStringdatestring
Yeardate.getYeardatenumber

Keywords

cutie

FAQs

Package last updated on 10 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts