Skip to content
 
 

Latest commit

 

History

67 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Version

ManiaPlanet Style parser

JavaScript package to parse ManiaPlanet styles. This is used in Trackmania.io.

It supports : $i, $o, $s, $w, $m, $g, $n, $<, $>, $l (for links like $l[http://maniaplanet.org]maniaplanet$l) and colors ($f20 for instance).

Usage

import Parser from 'maniaplanet-style';
Parser.toHTML('$f00Red');

Tests

Some tests are included. Simply run pnpm test to run them.

About the fork

This is forked from Nadeo's official package. That package has dated a bit and was built on CoffeeScript; this package avoids that altogether using modern Javascript based on the compiled Coffeescript. There are 0 dependencies and 0 dev dependencies.

About

JavaScript Maniaplanet style parser and renderer

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages