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

ntbk

v0.5.3

Published

A simple command-line journaling tool.

Downloads

4

Readme

:green_book: ntbk

ntbk is a simple command-line journaling tool written in Node.js.

Installation

To install ntbk using npm:

npm install -g ntbk

Usage

Type ntbk into your shell window followed by a message:

> ntbk 11-month-old stood up today for the first time

then hit enter to have the entry added to your designated notebook.

Alternatively, you can type ntbk and hit return and then type your message. When you're ready to save your entry, hit return again.

Options

-l, --list [n]

You can see all your entries by using the --list option:

> ntbk --list

You can also pass a number to the --list option and it will return a subset of your entries. For example if you passed 2 it will return the last two ntbk entries.

> ntbk -l 2

The above uses the shorthand version -l of the --list option.

-t, --tag [tag]

As you write entries in ntbk you might want to group similar entries together. You can do this by using tags.

ntbk supports Twitter like hashtag syntax.

I really think pizza is the best! #food

The syntax is a word that describes your entry with a hash (#) symbol prepended. Tags can be used anywhere within your entry.

When using tags while writing your entry, you might have to escape them using the backslash (\) character.

> ntbk Implemented tags in ntbk today \#dev

To list all ntbk entries containing a tag, you can use the --tag option:

> ntbk --tag food

As you can see in the example above, the tag option doesn't need to have the hashtag symbol prefixed when passing it a parameter.

You can also get a list of all existing tags in your notebook. Simply use the --tag option without passing in a tag as a parameter:

> ntbk --tag

The shorthand version of --tag is -t.

-m, --moments [value_unit]

Like a time machine, the --moments option allows you to relive your past entries from a year go.

> ntbk --moments

If you didn't write any entries a year ago from your current day, no problem, ntbk will retrieve a random moment from your entries.

The --moments option also allows you to pass in several time units to retrieve moments in time.

Let's say instead of a year, I wanted to relive my moments from last month, I could do this:

> ntbk --moments 1m

As you can see the syntax goes, numerical value paired with a single character unit. The units of time that --moments recognizes are:

d - day
m - month
y - year

The shorthand version of --moments is -m.

--count, -c [emojify]

See how many entries you've got in your notebook with --count.

> ntbk --count

Changelog

v0.5.3 / 2017-07-18

Added information on how to hack on ntbk from local machine.

v0.5.2 / 2016-06-29

The --tag option can now list existing tags from your journal. Run ntbk --tag without passing a tag and it'll list all your tags.

v0.5.1 / 2016-06-28

Fixed a bug with --moments where the default entry is a year from today.

v0.5.0 / 2016-06-23

See how many entries you've captured in your notebook with --count.

See all releases

Credit

ntbk was inspired by the Python journaling app, jrnl.

Make it better

Help make ntbk better. If you're handy with some JavaScript and/or Node.js, feel free to create a pull-request. You could also create a new issue on GitHub. If you have any questions feel free to shoot me a tweet @michaelsoolee.

To hack on ntbk on your local machine, first clone the repo, then from within your local copy, type npm link. This will make a symlink to your local copy.

License

MIT © Michael Lee