API Reference

util.escape Class

Description

Methods

diacritic

(str) String static

Replace diacritics in a string.

More info: http://stackoverflow.com/a/18391901

Parameters

Returns

filename

(str, [transform]) String static

Converts the string to a proper filename.

Transform:

  • 1: Lower case
  • 2: Upper case

Parameters

Returns

path

(str, transform) String static

Converts the string to a proper path.

Transform:

  • 1: Lower case
  • 2: Upper case

Parameters

Returns

regex

(str) String static

Escapes all keywords in regular expressions.

Parameters

Returns

yaml

(str) String static

Converts all tabs to spaces in the string.

Parameters

Returns