@thebespokepixel/term-ng-argv

argv insertion logic for term-ng

Usage no npm install needed!

<script type="module">
  import thebespokepixelTermNgArgv from 'https://cdn.skypack.dev/@thebespokepixel/term-ng-argv';
</script>

README

term-ng-argv

argv handling for termng

Build Status Dependency Status devDependency Status
Project status npm Status XO code style Chat on Gitter

TermNG argv handling

Used by term-ng to whitelist 24bit capable terminals. In a module so that it can be loaded prior to the 'supports-color' module to allow direct manipulation of process.argv.

Usage

  > npm install --save term-ng-argv
  // es2015/es6
  import {has16m} from 'term-ng-argv'

  // es5
  const has16m = require('term-ng-argv').has16m

has16m will be true if you're running iTerm2 v3.0.0 or if the environment variable TERM_COLOR is set to 16m.