
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
tickbin-parser
Advanced tools
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.
npm install tickbin-parser
import { Entry, parser } from 'tickbin-parser'
// userId may be undefined if you don't wish to associate entry with user
const entry = new Entry(userId, 'May 4 2-4pm I did some #stuff')
// entry = {
// version: 6,
// user: undefined,
// _id: 'H1yifd_4',
// original: 'May 4 2-4pm I did some #stuff',
// message: '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' }
// }
const parse = parser('8am-10am test message')
// parse = {
// start: Thu Jul 21 2016 08:00:00 GMT-0700 (PDT),
// end: Thu Jul 21 2016 10:00:00 GMT-0700 (PDT),
// text: '8am-10am',
// message: 'test message',
// isRange: true
// }
npm install
npm run build
npm test
Lead Maintainer: Chad Fawcett
FAQs
parse strings into entries
We found that tickbin-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.