Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
ansi-to-vue3
Advanced tools
This package convert ANSI escape codes to formatted text output for Vue3. Copy from ansi-to-react.
This package convert ANSI escape codes to formatted text output for Vue3. Copy from ansi-to-react.
$ yarn add ansi-to-vue3
$ npm install -S ansi-to-vue3
git clone https://github.com/jerrywu001/ansi-to-vue3
npm i
npm run dev
The example below shows how we can use this package to render a string with ANSI escape codes.
<template>
<Ansi>{{ '\u001b[34mhello world' }}</Ansi>
</template>
<script setup lang="ts">
import Ansi from 'ansi-to-vue3';
</script>
Will render:
<code>
<span style="color:rgb(0, 0, 187)">hello world</span>
</code>
Style with classes instead of style
attribute.
<template>
<Ansi use-classes>{{ "\u001b[34mhello world" }}</Ansi>
</template>
<script setup lang="ts">
import Ansi from 'ansi-to-vue3';
</script>
Will render
<code>
<span class="ansi-blue-fg">hello world</span>
</code>
Font color | Background Color |
---|---|
ansi-black-fg | ansi-black-bg |
ansi-red-fg | ansi-red-bg |
ansi-green-fg | ansi-green-bg |
ansi-yellow-fg | ansi-yellow-bg |
ansi-blue-fg | ansi-blue-bg |
ansi-magenta-fg | ansi-magenta-bg |
ansi-cyan-fg | ansi-cyan-bg |
ansi-white-fg | ansi-white-bg |
ansi-bright-black-fg | |
ansi-bright-red-fg | |
ansi-bright-green-fg | |
ansi-bright-yellow-fg | |
ansi-bright-blue-fg | |
ansi-bright-magenta-fg | |
ansi-bright-cyan-fg | |
ansi-bright-white-fg |
To develop on this project, fork and clone this repository on your local machine. Before making modifications, install the project's dependencies.
$ npm install
To run the test suite for this project, run:
$ npm test
If you experience an issue while using this package or have a feature request, please file an issue on the issue board,
FAQs
This package convert ANSI escape codes to formatted text output for Vue3. Copy from ansi-to-react.
The npm package ansi-to-vue3 receives a total of 780 weekly downloads. As such, ansi-to-vue3 popularity was classified as not popular.
We found that ansi-to-vue3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.