UNPKG

tripledoc

Version:

Library to read, create and update documents on a Solid Pod

58 lines (37 loc) 1.7 kB
# strip-color [![NPM version](https://badge.fury.io/js/strip-color.svg)](http://badge.fury.io/js/strip-color) > Strip ansi characters from a string. ## Install Install with [npm](https://www.npmjs.com/) ```sh $ npm i strip-color --save ``` ## Usage ```js var strip = require('strip-color'); var red = require('ansi-red'); var str = red('abc'); console.log(strip(str)); //=> 'abc'; ``` ## Related projects * [ansi-bold](https://www.npmjs.com/package/ansi-bold): The color bold, in ansi. | [homepage](https://github.com/jonschlinkert/ansi-bold) * [ansi-cyan](https://www.npmjs.com/package/ansi-cyan): The color cyan, in ansi. | [homepage](https://github.com/jonschlinkert/ansi-cyan) * [ansi-red](https://www.npmjs.com/package/ansi-red): The color red, in ansi. | [homepage](https://github.com/jonschlinkert/ansi-red) * [ansi-yellow](https://www.npmjs.com/package/ansi-yellow): The color yellow, in ansi. | [homepage](https://github.com/jonschlinkert/ansi-yellow) * [wrap-ansi](https://www.npmjs.com/package/wrap-ansi): Wordwrap a string with ANSI escape codes | [homepage](https://github.com/chalk/wrap-ansi) ## Running tests Install dev dependencies: ```sh $ npm i -d && npm test ``` ## Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/strip-color/issues/new). ## Author **Jon Schlinkert** + [github/jonschlinkert](https://github.com/jonschlinkert) + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ## License Copyright © 2015 Jon Schlinkert Released under the MIT license. *** _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 18, 2015._