GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lasar/dynalist-date-parser

BranchesTags
Open more actions menu

Latest commit

 

History

146 Commits
146 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
dist
dist
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

dynalist-date-parser

Usage

const Parser = require('dynalist-date-parser');

const exampleNode = {
    "id": "<node id>",
    "content": "Get it done !(2020-08-22)",
    "note": "A date range !(2020-08-21 - 2020-08-23)",
    "checkbox": true,
    "created": 1552959309904,
    "modified": 1552959359783
};

const exampleString = 'Get it done !(2020-08-22)'; 

// Create new object and extract dates from node
let ddp = new Parser(exampleNode);
// let ddp = new Parser(exampleString);

// ddp.dates will contain an array of dates as parsed objects
console.log(ddp.dates);
// TODO: Example output

// Modify all dates on object
ddp.modifyDates(dt => {
    // TODO
});

// Modify just the date at index 1 of the dates array
ddp.modifyDates(dt => {
    // TODO
}, 1);

// Return the node/string with modified dates
const updatedNode = ddp.updateSource();

Build webpack version

  • Update version in package.json
  • npm rum webpack
  • Remove old versions from dist/
  • git add the new version

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.