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:
require()
any package directly from npmawait
any promise instead of using callbacks (example)This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
argv handling for termng
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
.