Skip to content

FOR ARCHIVAL PURPOSES — It's a deprecated dependency Simple user settings management for node.js

License

Notifications You must be signed in to change notification settings

jv-k/user-settings2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 created
var settings = require('user-settings').file('.myAppSettings');

// Storing user settings
settings.set('username', 'rev087');

// Retrieving user settings
var username = settings.get('username');

// Unsetting
settings.unset('username');

Home directory location

The home directory used for Unix systems is process.env.HOME and process.env.USERPROFILE for Windows.

About

FOR ARCHIVAL PURPOSES — It's a deprecated dependency Simple user settings management for node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%