Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@persistr/clif-plugin-settings

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@persistr/clif-plugin-settings - npm Package Compare versions

Comparing version
2.1.0
to
2.2.0
+12
-3
index.js
const Settings = require('@persistr/settings')
const os = require('os')
module.exports = {
let name = '.cli'
const settings = {
initialize: (toolbox) => {
const isBrowser = typeof window !== 'undefined' && ({}).toString.call(window) === '[object Window]'
if (isBrowser) {
toolbox.settings = Settings.localStorage('.persistr.cli')
toolbox.settings = Settings.localStorage(`${name}`)
}
else {
toolbox.settings = Settings.file(`${os.homedir}/.persistr.cli`)
toolbox.settings = Settings.file(`${os.homedir}/${name}`)
}
}
}
settings.name = (n) => {
name = n
return settings
}
module.exports = settings
+1
-1
{
"name": "@persistr/clif-plugin-settings",
"version": "2.1.0",
"version": "2.2.0",
"description": "Persistent settings plugin for @persistr/clif",

@@ -5,0 +5,0 @@ "main": "index.js",