Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

has-ansi-cli

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-ansi-cli - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

19

cli.js
#!/usr/bin/env node
'use strict';
const getStdin = require('get-stdin');
const meow = require('meow');
const hasAnsi = require('has-ansi');
import getStdin from 'get-stdin';
import meow from 'meow';
import hasAnsi from 'has-ansi';

@@ -29,6 +28,8 @@ const cli = meow(`

if (input) {
init(input);
} else {
getStdin().then(init);
}
(async () => {
if (input) {
init(input);
} else {
init(await getStdin());
}
})();
{
"name": "has-ansi-cli",
"version": "3.0.0",
"description": "Check if a string has ANSI escape codes",
"license": "MIT",
"repository": "chalk/has-ansi-cli",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bin": {
"has-ansi": "cli.js"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"cli.js"
],
"keywords": [
"cli-app",
"cli",
"ansi",
"styles",
"color",
"colour",
"colors",
"terminal",
"console",
"string",
"tty",
"escape",
"shell",
"xterm",
"command-line",
"text",
"regex",
"regexp",
"re",
"match",
"test",
"find",
"pattern",
"has"
],
"dependencies": {
"get-stdin": "^5.0.1",
"has-ansi": "^3.0.0",
"meow": "^3.7.0"
},
"devDependencies": {
"ava": "*",
"execa": "^0.7.0",
"xo": "*"
}
"name": "has-ansi-cli",
"version": "4.0.0",
"description": "Check if a string has ANSI escape codes",
"license": "MIT",
"repository": "chalk/has-ansi-cli",
"funding": "https://github.com/chalk/has-ansi-cli?sponsor=1",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"bin": {
"has-ansi": "cli.js"
},
"engines": {
"node": ">=14"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"cli.js"
],
"keywords": [
"cli-app",
"cli",
"ansi",
"styles",
"color",
"colour",
"colors",
"terminal",
"console",
"string",
"tty",
"escape",
"shell",
"xterm",
"command-line",
"text",
"regex",
"regexp",
"re",
"match",
"test",
"find",
"pattern",
"has"
],
"dependencies": {
"get-stdin": "^8.0.0",
"has-ansi": "^4.0.0",
"meow": "^9.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"execa": "^5.0.0",
"xo": "^0.37.1"
}
}

@@ -1,6 +0,5 @@

# has-ansi-cli [![Build Status](https://travis-ci.org/chalk/has-ansi-cli.svg?branch=master)](https://travis-ci.org/chalk/has-ansi-cli)
# has-ansi-cli
> Check if a string has [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
## Install

@@ -12,3 +11,2 @@

## Usage

@@ -29,3 +27,2 @@

## Related

@@ -35,3 +32,2 @@

## Maintainers

@@ -41,6 +37,1 @@

- [Josh Junon](https://github.com/qix-)
## License
MIT

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc