Socket
Book a DemoInstallSign in
Socket

minecraft-motd-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minecraft-motd-parser

A simple minecraft motd parser. Returns an array of objects with formatting rules, ready to be used as you wish.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

MOTD parser

var parser = require('minecraft-motd-parser');
var motd = "§00 §11 §22 §33";

parser.parse(motd, function (err, result) {
    /* result
     *  [{rules: {color: "black"}, string: '0 '},
     *   {rules: {color: "dark-blue"}, string: '1 '},
     *   {rules: {color: "dark-green"}, string: '2 '},
     *   {rules: {color: "dark-acqua"}, string: '3'}]
     */
});

Keywords

node

FAQs

Package last updated on 17 Feb 2016

Did you know?

Socket

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.

Install

Related posts