🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@mdo-org/mdo-plugin-start

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdo-org/mdo-plugin-start

Allows setting a start date on to-dos, by using a `@start` tag.

latest
Source
npmnpm
Version
0.2.13
Version published
Maintainers
1
Created
Source

"Start" Plugin

The "start" plugin allows setting a start date on to-dos, by using a @start tag.

Installation

npm install --save @mdo-org/mdo-plugin-start

Usage

const start = require('@mdo-org/mdo-plugin-start');

const time = "2019-04-01T00:00-05:00";
const timezone = "America/Panama";

mdoStream
  .pipe((start.parse({ time, timezone })))
  .pipe((start.stringify({ time, timezone })));

Overview

parse

Converts the .start value from human-readable format into ISO-8601.

The allowed formats are specified here.

Example:

// given the following block object
{ start: "tomorrow" }

// after parse
{ start: "2019-01-04T00:00-05:00" }

stringify

Converts the .start value from ISO-8601 into MDo's standard date format.

Example:

// given the following block object
{ start: "2019-01-04T17:00-05:00" }

// after stringify
{ start: "2019-01-04 at 5pm" }

FAQs

Package last updated on 22 May 2021

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