systemd-escape

1.0.0-beta1 • Public • Published

Function to escape strings used with systemd.

Example

import {spawn} from "child_process";
import escape from "systemd-escape";

const instance = getInstanceNameSomehow();
const unit = `foo@${escape(instance)}`;
const child = spawn("systemctl", ["status", unit]);

child.stdout.pipe(process.stdout);

Readme

Keywords

none

Package Sidebar

Install

npm i systemd-escape

Weekly Downloads

1

Version

1.0.0-beta1

License

none

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • rremer