Check if it's the first time the process is run
Can be used to greet the user the first time they use your CLI app, show usage tip, initialize something, etc.
npm install first-run
// x.js
import isFirstRun from 'first-run';
console.log(isFirstRun({name: 'x'}));
$ node x.js
true
$ node x.js
false
Clear the state.
Type: object
Type: string
The name used to identify it.
Usually, you would fetch the name
field from package.json.