user-settings
user-settings is a simple way to manage user settings for your command-line Node application. Settings are stored as a file in the user's home directory and all methods are synchronous for simplicity.
Usage
You specify the filename to store and retrieve
// If ~/.myAppSettings doesn't exist, it's createdvar settings = ; // Storing user settingssettings; // Retrieving user settingsvar username = settings; // Unsettingsettings;
Home directory location
The home directory used for Unix systems is process.env.HOME
and process.env.USERPROFILE
for Windows.