@persistr/clif-plugin-settings
Advanced tools
+3
-4
@@ -1,2 +0,2 @@ | ||
| const settings = require('@persistr/settings') | ||
| const Settings = require('@persistr/settings') | ||
| const os = require('os') | ||
@@ -7,9 +7,8 @@ module.exports = { | ||
| if (isBrowser) { | ||
| settings.cfgUseLocalStorage('.persistr.cli') | ||
| toolbox.settings = Settings.localStorage('.persistr.cli') | ||
| } | ||
| else { | ||
| settings.cfgUseFile(`${os.homedir}/.persistr.cli`) | ||
| toolbox.settings = Settings.file(`${os.homedir}/.persistr.cli`) | ||
| } | ||
| toolbox.settings = settings | ||
| } | ||
| } |
+4
-2
| { | ||
| "name": "@persistr/clif-plugin-settings", | ||
| "version": "1.0.0", | ||
| "version": "2.0.0", | ||
| "description": "Persistent settings plugin for @persistr/clif", | ||
@@ -11,3 +11,5 @@ "main": "index.js", | ||
| "license": "GPL-3.0-only", | ||
| "dependencies": {}, | ||
| "dependencies": { | ||
| "@persistr/settings": "^1.0.0" | ||
| }, | ||
| "browserify": { | ||
@@ -14,0 +16,0 @@ "transform": [ |
1297
2.53%1
Infinity%13
-7.14%+ Added
+ Added