UNPKG

npmize

Version:

Let's create an npm package without worrying about anything.

13 lines (12 loc) 570 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const worker_threads_1 = require("worker_threads"); const generateOutput_1 = __importDefault(require("./generateOutput")); worker_threads_1.parentPort.on('message', (options) => { (0, generateOutput_1.default)(options.filePath, options.fileContent, options.options).then((data) => { worker_threads_1.parentPort.postMessage(data); }); });