Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cfware/node-preload
Request that Node.js child processes preload modules
https://github.com/cfware/node-preload
Last synced: 29 days ago
JSON representation
Request that Node.js child processes preload modules
- Host: GitHub
- URL: https://github.com/cfware/node-preload
- Owner: cfware
- License: mit
- Created: 2019-09-09T12:27:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-12T21:47:37.000Z (about 1 month ago)
- Last Synced: 2024-11-20T04:32:41.397Z (about 1 month ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# node-preload
![Tests][tests-status]
[![Greenkeeper badge][gk-image]](https://greenkeeper.io/)
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![MIT][license-image]](LICENSE)Request that Node.js child processes preload modules
### Install node-preload
This module requires node.js 8 or above.
```sh
npm i node-preload
```## Usage
```js
'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.](https://tidelift.com/subscription/pkg/npm-node-preload?utm_source=npm-node-preload&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
[npm-image]: https://img.shields.io/npm/v/node-preload.svg
[npm-url]: https://npmjs.org/package/node-preload
[tests-status]: https://github.com/cfware/node-preload/workflows/Tests/badge.svg
[gk-image]: https://badges.greenkeeper.io/cfware/node-preload.svg
[downloads-image]: https://img.shields.io/npm/dm/node-preload.svg
[downloads-url]: https://npmjs.org/package/node-preload
[license-image]: https://img.shields.io/npm/l/node-preload.svg