UNPKG

motion

Version:

motion - moving development forward

101 lines (100 loc) 3.17 kB
{ "_args": [ [ "has-ansi@https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "has-ansi@>=2.0.0 <3.0.0", "_id": "has-ansi@2.0.0", "_inCache": true, "_location": "/has-ansi", "_phantomChildren": {}, "_requested": { "name": "has-ansi", "raw": "has-ansi@https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "rawSpec": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "scope": null, "spec": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "type": "remote" }, "_requiredBy": [ "/chalk" ], "_resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "_shasum": "34f5049ce1ecdf2b0649af3ef24e45ed35416d91", "_shrinkwrap": null, "_spec": "has-ansi@https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/has-ansi/issues" }, "dependencies": { "ansi-regex": "^2.0.0" }, "description": "Check if a string has ANSI escape codes", "devDependencies": { "ava": "0.0.4" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/has-ansi#readme", "keywords": [ "ansi", "color", "colors", "colour", "command-line", "console", "escape", "find", "has", "match", "pattern", "re", "regex", "regexp", "shell", "string", "styles", "terminal", "test", "text", "tty", "xterm" ], "license": "MIT", "maintainers": [ { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, { "name": "Joshua Appelman", "email": "jappelman@xebia.com", "url": "jbnicolai.com" } ], "name": "has-ansi", "optionalDependencies": {}, "readme": "# has-ansi [![Build Status](https://travis-ci.org/sindresorhus/has-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/has-ansi)\n\n> Check if a string has [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)\n\n\n## Install\n\n```\n$ npm install --save has-ansi\n```\n\n\n## Usage\n\n```js\nvar hasAnsi = require('has-ansi');\n\nhasAnsi('\\u001b[4mcake\\u001b[0m');\n//=> true\n\nhasAnsi('cake');\n//=> false\n```\n\n\n## Related\n\n- [has-ansi-cli](https://github.com/sindresorhus/has-ansi-cli) - CLI for this module\n- [strip-ansi](https://github.com/sindresorhus/strip-ansi) - Strip ANSI escape codes\n- [ansi-regex](https://github.com/sindresorhus/ansi-regex) - Regular expression for matching ANSI escape codes\n- [chalk](https://github.com/sindresorhus/chalk) - Terminal string styling done right\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/has-ansi.git" }, "scripts": { "test": "node test.js" }, "version": "2.0.0" }