{
	"name": "ansi-mark",
	"versions": {
		"1.0.0": {
			"name": "ansi-mark",
			"main": "ansi-mark",
			"version": "1.0.0",
			"description": "🖊️  a highlight marker for your color ansi strings",
			"license": "MIT",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/F1LT3R/ansi-mark.git"
			},
			"author": {
				"name": "F1LT3R",
				"email": "al@pwn.io",
				"url": "f1lt3r.io"
			},
			"scripts": {
				"test": "xo && yarn run cover",
				"unit": "ava",
				"watch": "ava --watch",
				"cover": "nyc --reporter=lcov --reporter=html --reporter=text ava *.test.js",
				"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls -v",
				"precommit": "yarn test"
			},
			"files": [
				"index.js"
			],
			"keywords": [],
			"dependencies": {
				"ansi-regex": "^3.0.0",
				"array-uniq": "^1.0.3",
				"chalk": "^2.3.2",
				"super-split": "^1.1.0"
			},
			"devDependencies": {
				"ava": "^0.25.0",
				"coveralls": "^3.0.0",
				"git-hooks": "^1.1.10",
				"git-pre-commit": "^2.1.3",
				"nyc": "^11.6.0",
				"xo": "^0.20.3"
			},
			"nyc": {
				"reporter": [
					"lcov",
					"text"
				]
			},
			"xo": {
				"esnext": true,
				"semicolon": false,
				"globals": [
					"__dirname"
				],
				"rules": {
					"no-console": 1,
					"space-before-function-paren": 0
				}
			},
			"ava": {
				"failFast": true
			},
			"gitHead": "23247fff2befba1245c900a06ce06251943664e5",
			"bugs": {
				"url": "https://github.com/F1LT3R/ansi-mark/issues"
			},
			"homepage": "https://github.com/F1LT3R/ansi-mark#readme",
			"_id": "ansi-mark@1.0.0",
			"_npmVersion": "5.6.0",
			"_nodeVersion": "9.6.1",
			"_npmUser": {
				"name": "f1lt3r",
				"email": "al@pwn.io"
			},
			"dist": {
				"integrity": "sha512-72yA2I5cdAWV3irmBnK0tWdagjTLGPiXTpMZMyK2vlI0qq4RB0eNIuob/XG/efumfPGkHi+wkLqkEYnR1FtPNA==",
				"shasum": "dd461058da074a054977dfb2f540307452b19713",
				"tarball": "https://registry.npmjs.org/ansi-mark/-/ansi-mark-1.0.0.tgz",
				"fileCount": 4,
				"unpackedSize": 10012
			},
			"maintainers": [
				{
					"name": "f1lt3r",
					"email": "al@pwn.io"
				}
			],
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/ansi-mark_1.0.0_1521815762392_0.12355970195200316"
			},
			"contributors": []
		},
		"1.0.1": {
			"name": "ansi-mark",
			"main": "ansi-mark",
			"version": "1.0.1",
			"description": "🖊️  a highlight marker for your color ansi strings",
			"license": "MIT",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/F1LT3R/ansi-mark.git"
			},
			"author": {
				"name": "F1LT3R",
				"email": "al@pwn.io",
				"url": "f1lt3r.io"
			},
			"scripts": {
				"test": "xo && yarn run cover",
				"unit": "ava",
				"watch": "ava --watch",
				"cover": "nyc --reporter=lcov --reporter=html --reporter=text ava *.test.js",
				"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls -v",
				"precommit": "yarn test"
			},
			"files": [
				"index.js"
			],
			"keywords": [],
			"dependencies": {
				"ansi-regex": "^3.0.0",
				"array-uniq": "^1.0.3",
				"chalk": "^2.3.2",
				"super-split": "^1.1.0"
			},
			"devDependencies": {
				"ava": "^0.25.0",
				"coveralls": "^3.0.0",
				"git-hooks": "^1.1.10",
				"git-pre-commit": "^2.1.3",
				"nyc": "^11.6.0",
				"xo": "^0.20.3"
			},
			"nyc": {
				"reporter": [
					"lcov",
					"text"
				]
			},
			"xo": {
				"esnext": true,
				"semicolon": false,
				"globals": [
					"__dirname"
				],
				"rules": {
					"no-console": 1,
					"space-before-function-paren": 0
				}
			},
			"ava": {
				"failFast": true
			},
			"gitHead": "23f895046ebd5d344a8900685e6c905389384f5c",
			"bugs": {
				"url": "https://github.com/F1LT3R/ansi-mark/issues"
			},
			"homepage": "https://github.com/F1LT3R/ansi-mark#readme",
			"_id": "ansi-mark@1.0.1",
			"_npmVersion": "5.6.0",
			"_nodeVersion": "9.6.1",
			"_npmUser": {
				"name": "f1lt3r",
				"email": "al@pwn.io"
			},
			"dist": {
				"integrity": "sha512-9zUJPXpo/ifOF+wux+YQNkLy8FCXqW4GEd6zJQ7lXo7hqELNm/akNKxPR1iJykQIqCzHn15M2DycOjBIGHT0oA==",
				"shasum": "817ba7f72f5076b37fbb5bff17b1a5f9e374fc94",
				"tarball": "https://registry.npmjs.org/ansi-mark/-/ansi-mark-1.0.1.tgz",
				"fileCount": 4,
				"unpackedSize": 10062
			},
			"maintainers": [
				{
					"name": "f1lt3r",
					"email": "al@pwn.io"
				}
			],
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/ansi-mark_1.0.1_1521836049457_0.5154395250077075"
			},
			"contributors": []
		},
		"1.0.3": {
			"name": "ansi-mark",
			"main": "ansi-mark",
			"version": "1.0.3",
			"description": "🖊️  a highlight marker for your color ansi strings",
			"license": "MIT",
			"repository": {
				"type": "git",
				"url": "https://github.com/F1LT3R/ansi-mark.git"
			},
			"author": {
				"name": "F1LT3R",
				"email": "al@pwn.io",
				"url": "f1lt3r.io"
			},
			"scripts": {
				"test": "xo && yarn run cover",
				"unit": "ava",
				"watch": "ava --watch",
				"cover": "nyc --reporter=lcov --reporter=html --reporter=text ava *.test.js",
				"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls -v",
				"precommit": "yarn test"
			},
			"files": [
				"index.js"
			],
			"keywords": [],
			"dependencies": {
				"ansi-regex": "^3.0.0",
				"array-uniq": "^1.0.3",
				"chalk": "^2.3.2",
				"super-split": "^1.1.0"
			},
			"devDependencies": {
				"ava": "^0.25.0",
				"coveralls": "^3.0.0",
				"git-hooks": "^1.1.10",
				"git-pre-commit": "^2.1.3",
				"nyc": "^11.6.0",
				"xo": "^0.20.3"
			},
			"nyc": {
				"reporter": [
					"lcov",
					"text"
				]
			},
			"xo": {
				"esnext": true,
				"semicolon": false,
				"globals": [
					"__dirname"
				],
				"rules": {
					"no-console": 1,
					"space-before-function-paren": 0
				}
			},
			"ava": {
				"failFast": true
			},
			"licenseText": "MIT License\n\nCopyright (c) F1LT3R <al@pwn.io> (f1lt3r.io)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
			"_id": "ansi-mark@1.0.3",
			"dist": {
				"shasum": "8c8360c0527d60b35927178af7180000949135b8",
				"tarball": "https://registry.npmjs.org/ansi-mark/-/ansi-mark-1.0.3.tgz",
				"fileCount": 5,
				"unpackedSize": 10083
			},
			"maintainers": [
				{
					"name": "f1lt3r",
					"email": "al@pwn.io"
				}
			],
			"_npmUser": {
				"name": "f1lt3r",
				"email": "al@pwn.io"
			},
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/ansi-mark_1.0.3_1521837581262_0.08641445609438869"
			},
			"contributors": []
		},
		"1.0.4": {
			"name": "ansi-mark",
			"main": "ansi-mark",
			"version": "1.0.4",
			"description": "🖊️  a highlight marker for your color ansi strings",
			"license": "MIT",
			"repository": {
				"type": "git",
				"url": "https://github.com/F1LT3R/ansi-mark.git"
			},
			"author": {
				"name": "F1LT3R",
				"email": "al@pwn.io",
				"url": "f1lt3r.io"
			},
			"scripts": {
				"test": "xo && yarn run cover",
				"unit": "ava",
				"watch": "ava --watch",
				"cover": "nyc --reporter=lcov --reporter=html --reporter=text ava *.test.js",
				"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls -v",
				"precommit": "yarn test"
			},
			"files": [
				"index.js"
			],
			"keywords": [],
			"dependencies": {
				"ansi-regex": "^3.0.0",
				"array-uniq": "^1.0.3",
				"chalk": "^2.3.2",
				"strip-ansi": "^4.0.0",
				"super-split": "^1.1.0"
			},
			"devDependencies": {
				"ava": "^0.25.0",
				"coveralls": "^3.0.0",
				"git-hooks": "^1.1.10",
				"git-pre-commit": "^2.1.3",
				"nyc": "^11.6.0",
				"xo": "^0.20.3"
			},
			"nyc": {
				"reporter": [
					"lcov",
					"text"
				]
			},
			"xo": {
				"esnext": true,
				"semicolon": false,
				"globals": [
					"__dirname"
				],
				"rules": {
					"no-console": 1,
					"space-before-function-paren": 0
				}
			},
			"ava": {
				"failFast": true
			},
			"licenseText": "MIT License\n\nCopyright (c) F1LT3R <al@pwn.io> (f1lt3r.io)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
			"_id": "ansi-mark@1.0.4",
			"dist": {
				"shasum": "1cd4ba8d57f15f109d6aaf6ec9ca9786c8a4ee6c",
				"tarball": "https://registry.npmjs.org/ansi-mark/-/ansi-mark-1.0.4.tgz",
				"fileCount": 5,
				"unpackedSize": 9207
			},
			"maintainers": [
				{
					"name": "f1lt3r",
					"email": "al@pwn.io"
				}
			],
			"_npmUser": {
				"name": "f1lt3r",
				"email": "al@pwn.io"
			},
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/ansi-mark_1.0.4_1521890320921_0.9806559201062575"
			},
			"contributors": []
		}
	},
	"time": {
		"created": "2018-03-23T14:36:02.391Z",
		"1.0.0": "2018-03-23T14:36:02.458Z",
		"modified": "2018-03-24T11:18:42.028Z",
		"1.0.1": "2018-03-23T20:14:09.542Z",
		"1.0.3": "2018-03-23T20:39:41.348Z",
		"1.0.4": "2018-03-24T11:18:40.989Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "1.0.4"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"622bcc83f58dd467a2a7acbc67c8ce54\"",
			"fetched": 1602009458339
		}
	},
	"_distfiles": {
		"ansi-mark-1.0.0.tgz": {
			"url": "https://registry.npmjs.org/ansi-mark/-/ansi-mark-1.0.0.tgz",
			"sha": "dd461058da074a054977dfb2f540307452b19713",
			"registry": "npmjs"
		},
		"ansi-mark-1.0.1.tgz": {
			"url": "https://registry.npmjs.org/ansi-mark/-/ansi-mark-1.0.1.tgz",
			"sha": "817ba7f72f5076b37fbb5bff17b1a5f9e374fc94",
			"registry": "npmjs"
		},
		"ansi-mark-1.0.3.tgz": {
			"url": "https://registry.npmjs.org/ansi-mark/-/ansi-mark-1.0.3.tgz",
			"sha": "8c8360c0527d60b35927178af7180000949135b8",
			"registry": "npmjs"
		},
		"ansi-mark-1.0.4.tgz": {
			"url": "https://registry.npmjs.org/ansi-mark/-/ansi-mark-1.0.4.tgz",
			"sha": "1cd4ba8d57f15f109d6aaf6ec9ca9786c8a4ee6c",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"ansi-mark-1.0.4.tgz": {
			"shasum": "1cd4ba8d57f15f109d6aaf6ec9ca9786c8a4ee6c"
		}
	},
	"_rev": "12-145a60ad52ff68ab",
	"_id": "ansi-mark",
	"readme": "# ansi-mark\n\n> 🖊️  a highlight marker for your color ansi strings\n\n[![Build Status](https://travis-ci.org/F1LT3R/ansi-mark.svg?branch=master)](https://travis-ci.org/F1LT3R/ansi-mark)\n[![Coverage Status](https://coveralls.io/repos/github/F1LT3R/ansi-mark/badge.svg?branch=master)](https://coveralls.io/github/F1LT3R/ansi-mark?branch=master)\n[![NPM Version](https://img.shields.io/npm/v/ansi-mark.svg)](https://www.npmjs.com/package/ansi-mark)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\n## Before and After\n\n![Before ANSI-Mark](before.png)\n\n-\n\n![After ANSI-Mark](after.png)\n\n## Explanation\n\nIf your CLI app outputs strings containing ANSI color codes, like this...\n\n```js\nconst ansiStr = '\\u001b[37m\\u001b[33m<\\u001b[36mbody\\u001b[33m>\\u001b[37m            \\u001b[39m\\n\\u001b[37m\\t\\u001b[33m<\\u001b[36mspan\\u001b[33m>\\u001b[37mGood\\u001b[33m</\\u001b[36mspan\\u001b[33m>\\u001b[37m\\u001b[39m\\n\\u001b[37m\\t\\u001b[33m<\\u001b[36mspan\\u001b[33m>\\u001b[37mBad\\u001b[33m<\\u001b[36mspan\\u001b[33m>\\u001b[37m  \\u001b[39m\\n\\u001b[37m\\u001b[33m<\\u001b[36mbody\\u001b[33m>\\u001b[37m            \\u001b[39m\\n\\u001b[37m\\u001b[39m'\nconsole.log(ansiStr)\n```\n\n![Before ANSI-Mark](before.png)\n\n... then your ANSI string contains visible, and invisible characters. This makes it difficult if you want to highlight a portion of your string. The start and end position of your highlight needs to account for the invisible characters.\n\nBut wouldn't it be simpler for everyone if there was a Node Module that let you highlight a sub-string using the offsets of the visible characters?\n\nThat is what `ansi-mark` does:\n\n```js\nconst chalk = require('chalk')\n\nconst opts = {\n    start: {line: 3, column: 11},\n    end: {line: 4, column: 7},\n    color: chalk.bgRed.white.bold,\n    resetColor: true\n}\n\nconst result = ansiMark(ansiStr, opts)\n```\n\n![After ANSI-Mark](after.png)\n\n## Keep Colors\n\nIf you want to keep the underlying colors in the portion of the string you are highlighting, use the `resetColor: false` option:\n\n```js\nconst chalk = require('chalk')\n\nconst opts = {\n    start: {line: 3, column: 11},\n    end: {line: 4, column: 7},\n    color: chalk.bgBlack\n    resetColor: false\n}\n\nconst result = ansiMark(ansiStr, opts)\n```\n\n![After ANSI-Mark Keep Color](after-keep-color.png)\n\n## Using Offsets\n\nYou can also highlight by a linear character `offset` rather than `lines` and `columns`\n\n```js\nconst chalk = require('chalk')\n\nconst opts = {\n    start: 46,\n    end: 64,\n    color: chalk.bgRed.white.bold,\n    resetColor: true\n}\n\nconst result = ansiMark(ansiStr, opts)\n```\n\n![After ANSI-Mark](after.png)\n\n## Install\n\n```\n$ yarn add ansi-mark\n```"
}