systemd-escape-pmb

0.1.1 • Public • Published

systemd-escape-pmb

(Un)Escape strings and paths for use as systemd unit name parts.

API

This module exports an object that holds these functions:

escapeNonPath(s)

String → String. Escape a string exactly.

escapePath(s)

String → String. Normalize and then escape an absolute path.

unescapeNonPath(s)

String → String. Decode an escaped string.

unescapePath(s)

String → String. Decode an escaped path.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

Package Sidebar

Install

npm i systemd-escape-pmb

Weekly Downloads

3

Version

0.1.1

License

ISC

Unpacked Size

7.81 kB

Total Files

9

Last publish

Collaborators

  • mk-pmb