Apache License 2.0

项目介绍

ajalt/mordant 是一个托管在 GitHub 上的开源项目,主要使用 Kotlin 编写,采用 Apache License 2.0 许可证,目前获得 1.2k 个 Star、52 次 Fork。

仓库全名
ajalt/mordant
开源许可证
Apache License 2.0
Star 数
1.2k
Fork 数
52
未关闭 Issue
37

README 摘要

Mordant is a multiplatform library for rendering styled text in the terminal. You can use it to add color and style to text, create tables, draw animations, and more. Mordant has: Easy colorful ANSI output with automatic detection of terminal capabilities Markdown rendering directly to the terminal Widgets for laying out terminal output, including lists, tables, panels, and more Support for animating any widget,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

mordant 用什么语言开发?

主要使用 Kotlin 编写,采用 Apache License 2.0 许可证,目前有 1.2k 个 Star。

mordant 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 mordant 的源码?

可以直接克隆仓库:git clone https://github.com/ajalt/mordant.git,默认分支为 master;安装与运行步骤见仓库 README。

mordant 最近还在维护吗?

仓库最近一次更新为 8月31日,当前有 37 个未关闭 Issue;Star 数为 1.2k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Multiplatform text styling for Kotlin command-line applications

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1361
价值分
763
活跃状态
活跃

语言占比

Batchfile
Kotlin
Python
Shell

Release

README

Mordant is a multiplatform library for rendering styled text in the terminal. You can use it to add color and style to text, create tables, draw animations, and more.

Mordant has:

  • Easy colorful ANSI output with automatic detection of terminal capabilities
  • Markdown rendering directly to the terminal
  • Widgets for laying out terminal output, including lists, tables, panels, and more
  • Support for animating any widget, like progress bars and dashboards

Documentation

The full documentation can be found on the website.

Installation

Mordant is distributed through Maven Central.

dependencies {
    implementation("com.github.ajalt.mordant:mordant:3.1.1")

    // optional extensions for running animations with coroutines
    implementation("com.github.ajalt.mordant:mordant-coroutines:3.1.1")

    // optional widget for rendering Markdown
    implementation("com.github.ajalt.mordant:mordant-markdown:3.1.1")
}

On JVM, there are more granular dependencies available. See the docs for details.

If you’re using Maven instead of Gradle, use <artifactId>mordant-jvm</artifactId>
Snapshots
Snapshot builds are also available

You'll need to add the Central Portal snapshots repository:

repositories {
    maven {
        url = uri("https://central.sonatype.com/repository/maven-snapshots/")
    }
}

License

Copyright 2018 AJ Alt

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

评论

暂无评论