ansi-wrap

WebJar for ansi-wrap

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

ansi-wrap
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

ansi-wrap
WebJar for ansi-wrap
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jonschlinkert/ansi-wrap

Download ansi-wrap

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/ansi-wrap/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>ansi-wrap</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/ansi-wrap/
implementation 'org.webjars.npm:ansi-wrap:0.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/ansi-wrap/
implementation ("org.webjars.npm:ansi-wrap:0.1.0")
'org.webjars.npm:ansi-wrap:jar:0.1.0'
<dependency org="org.webjars.npm" name="ansi-wrap" rev="0.1.0">
  <artifact name="ansi-wrap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='ansi-wrap', version='0.1.0')
)
libraryDependencies += "org.webjars.npm" % "ansi-wrap" % "0.1.0"
[org.webjars.npm/ansi-wrap "0.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

ansi-wrap NPM version

Create ansi colors by passing open and close codes.

Install

Install with npm

$ npm i ansi-wrap --save

Usage

var wrap = require('ansi-wrap');

Example

Pass codes for ansi magenta background:

console.log(wrap(45, 49, 'This is a message...'));
//=> '\u001b[45mThis is a message...\u001b[49m'

Which prints out...

screen shot 2015-05-21 at 8 28 32 pm

Related projects

This is used in these projects:

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on May 24, 2015.

Versions

Version
0.1.0