Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rustytrim/melloutils
https://github.com/rustytrim/melloutils
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rustytrim/melloutils
- Owner: rustytrim
- License: mit
- Created: 2022-09-20T01:49:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-11T01:16:26.000Z (about 2 years ago)
- Last Synced: 2024-06-03T22:21:34.652Z (7 months ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MelloUtils
A multipurpose NodeJS package---
# Classes
###**TextFormat** - Example
JavaScript
```js
const { TextFormat } = require("mello-utils");
console.log(TextFormat.GREEN + "Hello World!" + TextFormat.RESET);
```
TypeScript
```ts
import { TextFormat } from "mello-utils";
console.log(TextFormat.GREEN + "Hello World" + TextFormat.RESET);
```
Cool Feature! You can define your own symbols to easily create colored text. It also automatically resets the color so you don't need to do it!
```ts
import { TextFormat } from "mello-utils";
console.log(TextFormat.translateAlternateColorCodes("&", "&aHello World!"));
```
`I probably be adding some documentation for this later this week so that it is easier to use and learn`