My First Node.js Package — manuscript-logger

I have successfully published my first node.js package, it‘s called manuscript-logger and it examines a folder full of .md files and gathers some information about them. I’m working on a book (or two) and I am putting each chapter in a seperate text file to make it easy to generate the book using Pandoc or maybe Leanpub later on.

I, of course, love writing in SublimeText but I wanted an easy way to keep track of information about how the whole project was going. So I thought about a shell script using the linux wc command but then I wanted a few more features. So, I ended up writing the whole thing in Node.js. Because javascript, duh.

You can look at the code on github. It does two cool things to integrate with my plain-text-file workflow. It generates a taskpaper file with all of my chapters broken up by the status I set in the chapter’s meta header, ie. outline, draft, final-draft, or edited. In addition it will append a line to a csv file with my current word count for the whole project each time I run it. Now I just need to add it to a daily cron job or a launchd task so it runs every day.