1.0.5 • Published 6 years ago

str-esc v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

str-esc

Utility to escape entities in string

Can also split/join strings with respect of escaping

Example

    // import {EscapeService} from 'str-esc';
    const {EscapeService} = require('str-esc');

    let svc = new EscapeService('%');
    svc.encode('100% Y-m-d', ['Y', 'm', 'd']); // '100%% %Y-%m-%d'

    svc = new EscapeService();
    svc.split(', ', 'a, b\\, c, d');    // ['a', 'b, c', 'd']
    svc.join(', ', ['a', 'b, c', 'd']); // 'a, b\\, c, d'
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago