Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

unlimited

feross122MIT1.2.2

Upgrade the maximum file descriptor number ('nofile') that can be opened by this process

upgrade ulimit, ulimit, posix, unlimited ulimit, unlimited rlimit, rlimit, set rlimit, setrlimit, set ulimit, setulimit, server, nofile, unlimited nofile, unlimited, posix.setrlimit

readme

unlimited travis npm downloads javascript style guide

Upgrade the maximum file descriptor number ('nofile') that can be opened by this process

install

npm install unlimited

usage

To attempt to upgrade the maximum file descriptor number that can be opened by this process to effectively unlimited (65536):

var unlimited = require('unlimited')
unlimited()

Or specify a specific 'nofile' number to use:

unlimited(10000)

If the current user's permissions or the system's 'hard' limit do not allow the maximum file descriptor number to be increased, this function will do nothing (no-op).

For best results, start your node process as root, run unlimited(), then downgrade the user permissions with the downgrade package.

On non-posix platforms (e.g. Windows), this module does nothing.

license

MIT. Copyright (c) Feross Aboukhadijeh.