8000 Provide a simple string-oriented API by kapouer · Pull Request #17 · TooTallNate/ansi.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Provide a simple string-oriented API #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kapouer
Copy link
@kapouer kapouer commented Aug 3, 2014

This will help wider adoption of ansi.js :)

@kapouer
Copy link
Author
kapouer commented Aug 4, 2014

Updated to remove the closure, rename ansi.color to ansi.wrap, and remove dead code.

@kapouer
Copy link
Author
kapouer commented Aug 5, 2014

This is what we have in npm:

  • ansi-color-table depending on ansi
  • ansicolors, ansistyles
    This PR would allow to get rid of those last two dependencies - ansi.js does the job already, it's just that it is missing an API to manipulate strings.

@kapouer
Copy link
Author
kapouer commented Aug 5, 2014

Updated to be directly available on require('ansi'), giving a near drop-in replacement for ansicolors & ansistyles (for some styles).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0