0.1.1 • Published 3 years ago

systemd-escape-pmb v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

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