sigman.pl
  • Latests
  • Primers
  • Tips
  • Tutorials

Tag: nodejs

Showing 1 post.

Creating command line tools with Node.js

March 15th, 2016    by sigman    13155
  Tips   nodejs, javascript, linux, programming

I needed to create an utility that when installed as a global module, it would be both available as a command line tool in bash and as a Node module that could be imported with require function from any Node script. As the command line tool, i wanted it to take input in two ways: take parameters and read input from a file or take piped streams. This tip explains how this can be achieved.

continue reading...

Latests Posts

  • 1. Creating command line tools with Node.js
  • 2. CouchDB primer part 2 - design documents and views
  • 3. CouchDB primer part 1 - the basics
  • 4. Markdown basics
  • 5. Using modules and dependency management in JavaScript applications with AMD - require.js

Popular Posts

  • 1. Starting with AIR for Android and iOS - building one app for both platforms (65441)
  • 2. Building mobile games in Adobe AIR - techniques used in Jumping Droid (49309)
  • 3. Building iOS app with Adobe AIR - things learnt when developing ColorByShape app (32361)
  • 4. CouchDB primer part 2 - design documents and views (17236)
  • 5. CouchDB primer part 1 - the basics (14673)

Categories

    AllPrimers (6)Tips (5)Tutorials (4)

Tags

  • CouchDB (2)
  • RegEx (1)
  • actionscript (8)
  • architecture (0)
  • box2d (1)
  • databases (2)
  • javascript (3)
  • keystonejs (0)
  • linux (3)
  • mobile (4)
  • nodejs (1)
  • nosql (2)
  • programming (7)

© sigman.pl 2026