npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eating

v0.1.2

Published

eating. A natural language command line food diary.

Downloads

15

Readme

eating-cli

Build Status

Analytics

eating is a very simple node.js command line application for recording what you eat (a meal diary/journal). Inspired by doing it takes near to natural language input and turns that into structured meals. There's also a web version at eatkeep.io

eating 7 ham and pineapple pizzas 2 hours ago 7000!

would yeild

  • Date: (UTC the date/time 2 hours ago)
  • Foods: 7 Ham & Pineapple Pizzas
  • Calories: 7000
  • Important: true (exclamation mark)

n.b. I do not encourage you to eat 7 pizzas

eating yesterday 3.30pm 1/2 chocolate bar 200cals

would yeild

  • Date: (UTC date/time of yesterday 3.30pm)
  • Foods: 1/2 Chocolate Bar
  • Calories: 200
  • Important: false

##How to install

npm install -g eating

to update

npm update -g eating

####configuration eating has 2 configurable options

  • path -- folder where it will save your data
  • defaults to ~/.eatingdata/
  • I recommend setting to to somewhere in your dropbox or gdrive
eating --path '~/Google Drive/eating'
  • locale
  • date locale defaults to nodes default usually en-US (mm/dd/yyyy)
  • if set to 'en-AU' it will then parse dates as dd/mm/yyyy
eating --locale 'en-AU'

##How to use

running the command outputs what you've recorded that day and total calories

eating

to show help

eating --help
eating <command> --help

show meals for all/today/yesterdays/week/ [enddate]

eating list yesterday
eating list 22/07
eating list 22/07 28/07

export to a formatted .txt file

eating list 22/07 28/07 --txt ~/dairy.txt

export to json

eating list 22/07 28/07 --json ~/dairy.json

to remove a meal, find the meals id (the number next to meal)

eating remove id

or remove the last added meal

eating remove last

if none of the commands above it will try and pass all args as a meal

eating chicken caesar salad 20 minutes ago 600cals!

by putting a '!' (exclamation mark) somewhere in the text will flag the meal as important useful for marking cheat meals, high glucose meals(for diabetics) and other things.

Problems

If you find a bug or have any problems create an github issue or email me at my github email. I will fix them.

n.b. I have only tested this on OS X