Create a noop (no operation) process and get the PID
npm install noop-process> Create a noop (no operation) process and get the PID
Useful for testing purposes.
```
$ npm install noop-process
`js
import noopProcess from 'noop-process';
const pid = await noopProcess();
console.log(pid);
//=> 1337
`
Creates a noop) process.
Returns a Promise with the process ID of the created process.
#### options
Type: object
##### title
Type: string
Give the process a title to make it easier to see it in ps or kill it with killall.
Maximum 15 characters, as anything longer will be truncated by the system.
##### persistent
Type: boolean\false
Default:
Let the process continue to live after the main process exits.
##### onlyForceKillable
Type: boolean\false
Default:
Make the process only killable with SIGKILL.
All the processes are cleaned up when the main process exits, but you can use this if you need them cleaned up earlier.
`js
import {cleanUpNoopProcesses} from 'noop-process';
cleanUpNoopProcesses();
``