1.6.7 • Published 7 months ago

@mojojs/util v1.6.7

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

npm.io Coverage Status npm

Just a bunch of utility functions and classes shared by mojo.js packages.

import {SafeString, escapeRegExp, xmlEscape, xmlUnescape} from '@mojojs/util';

// "te\*s\?t"
const str = escapeRegExp('te*s?t');

// "<p>"
const str = xmlEscape('<p>');

// "<p>"
const str = xmlEscape(new SafeString('<p>'));

// "<p>"
const str = xmlUnescape('&lt;p&gt;&apos;');

Installation

All you need is Node.js 16.0.0 (or newer).

$ npm install @mojojs/util

Support

If you have any questions the documentation might not yet answer, don't hesitate to ask in the Forum, on Matrix, or IRC.

1.6.7

7 months ago

1.6.6

10 months ago

1.6.4

1 year ago

1.6.5

11 months ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago