Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tickbin-entry-parser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tickbin-entry-parser

parse strings into entries

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

A parser to take strings that look like "May 4 2-4pm I did some #stuff" and parse out all the useful information like start/end time, date, tags, etc. into an object.

Install

npm install tickbin-entry-parser

Usage

import Parser from 'tickbin-entry-parser'

//  userId may be undefined if you don't wish to associate entry with user
const entry = new Parser(userId, 'May 4 2-4pm I did some #stuff')
//  entry = {
//    version: 4,
//    user: undefined,
//    _id: 'H1yifd_4',
//    message: 'May 4 2-4pm I did some #stuff',
//    ref: Fri Jun 10 2016 10:02:14 GMT-0700 (PDT),
//    hasDates: true,
//    start: Wed May 04 2016 14:00:00 GMT-0700 (PDT),
//    startArr: [ 2016, 4, 4, 14, 0, 0, 0 ],
//    end: Wed May 04 2016 16:00:00 GMT-0700 (PDT),
//    endArr: [ 2016, 4, 4, 16, 0, 0, 0 ],
//    time: 'May 4 2-4pm',
//    duration: {
//      [Number: 7200000]
//      from: Wed May 04 2016 14:00:00 GMT-0700 (PDT),
//      to: Wed May 04 2016 16:00:00 GMT-0700 (PDT)
//    },
//    tags: Set { '#stuff' }
//  }

Building

npm install
npm run build
npm test

FAQs

Package last updated on 17 Jun 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc