Socket
Socket
Sign inDemoInstall

resolve-alfred-prefs

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    resolve-alfred-prefs

Resolve the path of Alfred.alfredpreferences


Version published
Maintainers
1
Install size
243 kB
Created

Readme

Source

resolve-alfred-prefs Build Status

Resolve the path of Alfred.alfredpreferences

Install

$ npm install resolve-alfred-prefs

Usage

const resolveAlfredPrefs = require('resolve-alfred-prefs');

(async () => {
	console.log(await resolveAlfredPrefs());
	// If Alfred 4 or newer
	//=> {path: '/Users/sam/Dropbox/Alfred.alfredpreferences'}

	// If Alfred 3
	//=> {version: 3, path: '/Users/sam/Dropbox/Alfred.alfredpreferences'}
})();

API

resolveAlfredPrefs()

Returns an object with:

  • version (String) - The key will pesent if the Alfred version is 3.
  • path (String) - The Alfred.alfredpreferences path.

License

MIT © Sam Verschueren

Keywords

FAQs

Last updated on 14 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc