Popularity
1.7
Growing
Activity
0.0
Stable
79
7
6

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Command Line Utilities     Time     Process     Init     Start     Run     Initial     First    
Latest version: v2.0.0

first-run alternatives and similar modules

Based on the "Command Line Utilities" category.
Alternatively, view first-run alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of first-run or a related project?

Add another 'Command Line Utilities' Module

README

first-run

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.

Install

$ npm install first-run

Usage

// x.js
const firstRun = require('first-run');

console.log(firstRun());
$ node x.js
true
$ node x.js
false

API

firstRun([options])

firstRun.clear([options])

Clear the state.

options

Type: Object

name

Type: string Default: name field in your package.json

The name used to identify it.

License

MIT ยฉ Sindre Sorhus


*Note that all licence references and agreements mentioned in the first-run README section above are relevant to that project's source code only.