fast-wrap-ansi
A tiny and fast text wrap library which takes ANSI escapes into account.
Last updated 6 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fast-wrap-ansi 
SYNC missed versions from official npm registry.

fast-wrap-ansi

Wordwrap a string, taking ANSI escape codes into account.

A fast, light fork of the wrap-ansi package.

Install

npm i -S fast-wrap-ansi

Usage

import {wrapAnsi} from 'fast-wrap-ansi';

const str = 'This is a string with some \x1b[31mANSI\x1b[39m codes.';
const wrapped = wrapAnsi(str, 20);
console.log(wrapped);

License

MIT

Current Tags

  • 0.2.0                                ...           latest (6 months ago)

7 Versions

  • 0.2.0                                ...           6 months ago
  • 0.1.6                                ...           6 months ago
  • 0.1.3                                ...           8 months ago
  • 0.1.2                                ...           8 months ago
  • 0.1.1                                ...           8 months ago
  • 0.1.0                                ...           8 months ago
  • 0.0.1                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (11)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |