JSPM

resolve-alfred-prefs

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 93
  • Score
    100M100P100Q81432F
  • License MIT

Resolve the path of Alfred.alfredpreferences

Package Exports

  • resolve-alfred-prefs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (resolve-alfred-prefs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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