1 | # alfred-link [![Build Status](https://travis-ci.org/SamVerschueren/alfred-link.svg?branch=master)](https://travis-ci.org/SamVerschueren/alfred-link)
|
2 |
|
3 | > Make your [Alfred](https://www.alfredapp.com/) workflows installable from npm
|
4 |
|
5 |
|
6 | ## Install
|
7 |
|
8 | ```
|
9 | $ npm install --save alfred-link
|
10 | ```
|
11 |
|
12 |
|
13 | ## Usage
|
14 |
|
15 | Add the `alfred-link` command as `postinstall` script of your Alfred package.
|
16 |
|
17 | ```json
|
18 | {
|
19 | "name": "alfred-unicorn",
|
20 | "scripts": {
|
21 | "postinstall": "alfred-link"
|
22 | }
|
23 | }
|
24 | ```
|
25 |
|
26 | You can now install the `alfred-unicorn` package like this
|
27 |
|
28 | ```
|
29 | $ npm install -g alfred-unicorn.
|
30 | ```
|
31 |
|
32 | This will update `info.plist` with the information from `package.json` and creates a `unicorn` symlink inside the Alfred
|
33 | workflows directory that points to the location of the `alfred-unicorn` module.
|
34 |
|
35 |
|
36 | ## Related
|
37 |
|
38 | - [alfy](https://github.com/sindresorhus/alfy) - Create Alfred workflows with ease
|
39 |
|
40 |
|
41 | ## License
|
42 |
|
43 | MIT © [Sam Verschueren](https://github.com/SamVerschueren)
|