0.1.5 • Published 8 years ago

matrix-userid-mapping v0.1.5

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

matrix-userid-mapping

Handles mapping mapping arbitrary UTF-8 into Matrix userids (MXID) and back according to the specifications layed out in http://matrix.org/docs/spec/intro.html#mapping-from-other-character-sets

Usage:

var userid_map = require("matrix-userid-mapping");
userid_map.toMxid("Test");   // Converts 'Test' to '_test'
userid_map.fromMxid("_test");   // Converts 'test' to 'Test'

There is an optional second parameter in both functions which allows you to use the case-insensitive version of the conversion specification if you set it to false.

0.1.5

8 years ago

0.1.4

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago