1.0.1 • Published 5 years ago

console-title-cli v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

node-console-title-cli

CLI to set console title on Windows, Linux or OS/X in a cross-platform way

Installation

Prerequisites

windows-console-title is used underneath the covers. They use node-gyp for their build. This requires Python 2.7 (3.x.x support is lacking from their base gyp project).

If you get errors while installing this project that reference node-gyp you should install all necessary dependencies with these commands (powershell):

npm install --global --production windows-build-tools
npm install --global node-gyp
npm install node-constole-title-cli

Usage

If globally installed (not recommended):

npm run set-title My Task

Otherwise add to a script as any other command:

"scripts": {
    "do-stuff": "set-title My Task && npm run do-more-stuff"
}
npm run do-stuff
# set title and force Windows mode
npx set-title -f win My Title
# set title and force ansi (linux/mac) mode
npx set-title -f ansi My Title

Notes

I highly recommend using the npm-run-all package for a nicer experience:

"scripts": {
    "do-stuff": "run-s \"set-title My Task\" do-more-stuff"
}