6.1.0 • Published 2 years ago

remixml-pathencode v6.1.0

Weekly downloads
15
License
(ISC OR GPL-3.0)
Repository
github
Last release
2 years ago

NPM version Downloads Rate on Openbase

Performs a lossy transformation into a format that can be inserted into a URI path component.

Automatically registers itself as a Remixml filter using the name path.

Basic usage

<set var="_.foo">SÖme text with a diacritic.</set>
Then insert /this/is/a/sanitised/&_.foo:path;/path using the path filter.

Requirements

It runs inside any webbrowser or NodeJS environment.

Reference documentation

  • RemixmlPathencode.encode(string) Performs a lossy transformation of string into a format that can be inserted into a URI path component:
    • Cast to lowercase.
    • Replace diacritics by their ASCII equivalent.
    • Replace all strings of non-alphanumeric characters with single dashes.
    • Strip dashes from start and end.

References

Card-carrying member of the zerodeps movement.

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

4.0.5

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

1.0.0

3 years ago