rwlockfile
![Build status](https://ci.appveyor.com/api/projects/status/2s8cyotehrtap0t2/branch/master?svg=true)
node utility for read/write lockfiles
rwlockfile
rwlockfile.write(path, options) ⇒ Promise
lock for writing
Kind: static method of rwlockfile
Param | Type | Default | Description |
---|
path | string | | path of lockfile to use |
options | object | | |
[options.timeout] | number | 60000 | Max time to wait for lockfile to be open |
[options.skipOwnPid] | boolean | | Do not wait on own pid (to upgrade current process) |
rwlockfile.read(path, options) ⇒ Promise
lock for reading
Kind: static method of rwlockfile
Param | Type | Default | Description |
---|
path | string | | path of lockfile to use |
options | object | | |
[options.timeout] | number | 60000 | Max time to wait for lockfile to be open |
rwlockfile~hasWriter(path)
check if active writer
Kind: inner method of rwlockfile
Param | Type | Description |
---|
path | string | path of lockfile to use |