# @icenore/tm-colors-text

> A program that take a Trackmania text with $ code and return a style for every chars

Latest version **1.1.0** (published 2022-05-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install @icenore/tm-colors-text
pnpm add @icenore/tm-colors-text
yarn add @icenore/tm-colors-text
bun add @icenore/tm-colors-text
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-05-03 |
| First published | 2022-05-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | enzo.haegel@gmail.com |
| Maintainers | poseydon989 |

## Links

- npm: https://www.npmjs.com/package/@icenore/tm-colors-text
- npm.io page: https://npm.io/package/@icenore/tm-colors-text

## Recent versions

- 1.1.0 (latest) — 2022-05-03
- 1.0.2 — 2022-05-03
- 1.0.1 — 2022-05-03
- 1.0.0 — 2022-05-03

## README

# Description

It's a package for Javascript WebSites.
If you want the package for angular in typescript, you can use [`ng-tm-colors-text`](https://www.npmjs.com/package/@icenore/ng-tm-colors-text).

This package return an array with each char of a text with style to be used in ngFor.

# Installation
    
```bash
$ npm install --save @icenore/tm-colors-text
```

# Usage

## Import
```js
const tmColorsText = require('@icenore/tm-colors-text')
const style = tmColorsText.TmColorsText('$o$FF0Hello $0FFWorld', 18)
```
## Return

This return an array of Object like this:
```json
[{
    "char": "a",
    "style": "color: #FFF; font-size: 18px; font-weight: normal; text-shadow: none;",
    "index": "0"
}]
```

---
_Source: https://npm.io/package/@icenore/tm-colors-text · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
