Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tlid

tlid41MIT1.1.0

Goal: Content needs something to search for, identify in time. ;History: Tlid is the oldest libraries I created about 20 years ago if not more, it simply enables creating datetime based string to use mostly for efficient file naming composed of a sortabl

date, sortable, string, util, gix, tool

readme

GOAL

Content needs something to search for, identify in time.

Install

npm install tlid --save

Usage

Common

var tlid = require('tlid');
var mytlid = tlid.get();
var min = tlid.minutes();
var ms = tlid.ms();
var day = tlid.day();

var mytextWithTlid = "today 181208 I had completed the feature";
if (tlid.has(mytextWithTlid)){
    var xtractedTlid = tlid.xtr(mytextWithTlid);
    console.log("ExtractedTlid: " + xtractedTlid);
};

History

Tlid is the oldest libraries I created about 20 years ago if not more, it simply enables creating datetime based string to use mostly for efficient file naming composed of a sortable and searchable dt string.

changelog

Changelog

All notable changes to this project will be documented in this file.

[Unreleased]

Changed

  • Up to date

[1.0.8] - 2018-12-26

Changed

  • enhanced .todate(tlid) function to support a string as input and tlid will export Date in it.

[1.0.7] - 2018-12-26

Changed

  • added .todate(tlid) function

[1.0.6] - 2018-12-26

Changed

  • Minor enhancements (double spaces in cleared and extracted text)

[1.0.5] - 2018-12-21

Changed

  • Added function to clear a text of tlid

[1.0.4] - 2018-12-20

Changed

  • Found ways to make browserify compatible

[1.0.3] - 2018-12-09

Changed

  • Minor fix in output of xtro

[1.0.2] - 2018-12-09

Changed

  • Minor fix in output of xtro

[1.0.1] - 2018-12-08

Added

  • function xtr(str) : Extraction of tlid
  • function has(str): string has tlid?
  • function json() : get as json string
  • function ojson() : get as json object string

  • Added "CHANGELOG.md".

Changed

  • none

Removed

  • none

[1.0.0] - 2018-11-01

Init

  • Initial release