Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

resolve-alfred-prefs

SamVerschueren397MIT2.0.0

Resolve the path of Alfred.alfredpreferences

alfred, preferences, alfred-prefs, alfred-preferences, alfredpreferences, alfy, workflow, productivity

readme

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