Skip to content

cfware/node-preload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ece78e1 · May 12, 2020

History

31 Commits
May 12, 2020
Dec 16, 2019
Dec 16, 2019
Mar 27, 2020
Sep 9, 2019
Mar 27, 2020
Sep 9, 2019
Dec 22, 2019
Sep 9, 2019
Mar 27, 2020
Dec 22, 2019
Dec 16, 2019
Dec 16, 2019
Dec 16, 2019
Dec 22, 2019
May 7, 2020
Dec 16, 2019
Dec 16, 2019
Dec 16, 2019

Repository files navigation

node-preload

Tests Greenkeeper badge NPM Version NPM Downloads MIT

Request that Node.js child processes preload modules

Install node-preload

This module requires node.js 8 or above.

npm i node-preload

Usage

'use strict';

const preloadList = require('node-preload');

// Request that all Node.js child processes preload @babel/register
preloadList.push(require.resolve('@babel/register'));

Limitations

Worker threads are not directly supported by this module, results may vary.

node-preload for enterprise

Available as part of the Tidelift Subscription.

The maintainers of node-preload and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.