unlimited

1.2.2 • Public • Published

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.

Package Sidebar

Install

npm i unlimited

Weekly Downloads

2

Version

1.2.2

License

MIT

Unpacked Size

5.22 kB

Total Files

6

Last publish

Collaborators

  • feross