UNPKG

pipeproc

Version:

Multi-process log processing for nodejs

15 lines (14 loc) 413 B
"use strict"; //based on https://github.com/nodexo/xpipe Object.defineProperty(exports, "__esModule", { value: true }); function xpipe(path) { const prefix = getPrefix(); if (prefix.endsWith("/") && path.startsWith("/")) { return prefix + path.substr(1); } return prefix + path; } exports.xpipe = xpipe; function getPrefix() { return process.platform === "win32" ? "//./pipe/" : ""; }