Articles in this series
Today's npm package is jsdoc-to-markdown
The way you can define a simple JSDoc is as follows:
* Function to generate the Square...
Today's npm package is memoizerific
And if there operations are similar but executed very often, it is good...
Today's npm package is child-process-ext
When creating CLI tools, you might wanna use other CLI tools and not have the luxury of npm package around those tools.
In such cases, you would need to create a child process with specific CLI command and ge...
Today's npm package is cli-table3
For CLI tools, sometimes it is need to show some tabular information.
CLI Table is to the rescue.
Here's how you can use it to generate tables. In this example, we will generate table from file stats showing size, c...
Today's npm package is is-glob
While creating Node.js based CLIs which is working with Files and Directories; you might wanna work with Glob .
And when working with Glob, you need to know when the passed argument is a glob or not.
The package is-g...
Today's npm package is is-directory
This package will help you check if the supplied path is a directory or not. It will return true if the file path exists on the file system and its directory.
const fs = require('fs');
const isDirectory = require...