console-title-cli

1.0.1 • Public • Published

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"
}

Package Sidebar

Install

npm i console-title-cli

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

7.7 kB

Total Files

12

Last publish

Collaborators

  • byt3c0d3