Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @thebespokepixel/term-ng-argv with all npm packages installed. Try it out:

var termNgArgv = require("@thebespokepixel/term-ng-argv")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@thebespokepixel/term-ng-argv v0.2.0

argv insertion logic for term-ng


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.


  > 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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free