Socket
Book a DemoInstallSign in
Socket

unlimited

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unlimited

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

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

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.

Keywords

upgrade ulimit

FAQs

Package last updated on 17 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts