Diff
1diff --git a/plugins/frontend-search/README.md b/plugins/frontend-search/README.md
2index ddcb3d72b26d413c984295f304ae3a8906fbec29..0500589311dbb1913883faead8464c31a50a33bd 100644
3--- a/plugins/frontend-search/README.md
4+++ b/plugins/frontend-search/README.md
5@@ -52,6 +52,7 @@ Available search contexts are:
6 | mdn | `https://developer.mozilla.org/search?q=` |
7 | nodejs | `https://www.google.com/search?as_sitesearch=nodejs.org/en/docs/&as_q=` |
8 | npmjs | `https://www.npmjs.com/search?q=` |
9+| packagephobia | `https://packagephobia.now.sh/result?p=` |
10 | qunit | `https://api.qunitjs.com/?s=` |
11 | reactjs | `https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=` |
12 | smacss | `https://google.com/search?as_sitesearch=smacss.com&as_q=` |
13diff --git a/plugins/frontend-search/_frontend-search.sh b/plugins/frontend-search/_frontend-search.sh
14index c59640e743386993127fe5ea9197c54c4f95f23f..15f8d239dfbae03aaecec85b020f2e8db360e3e4 100644
15--- a/plugins/frontend-search/_frontend-search.sh
16+++ b/plugins/frontend-search/_frontend-search.sh
17@@ -38,6 +38,7 @@ function _frontend() {
18 'mdn: Search in MDN website'
19 'nodejs: Search in NodeJS website'
20 'npmjs: Search in NPMJS website'
21+ 'packagephobia: Search in Packagephobia website'
22 'qunit: Search in Qunit website'
23 'reactjs: Search in React website'
24 'smacss: Search in SMACSS website'
25@@ -124,6 +125,9 @@ function _frontend() {
26 bundlephobia)
27 _describe -t points "Warp points" frontend_points && ret=0
28 ;;
29+ packagephobia)
30+ _describe -t points "Warp points" frontend_points && ret=0
31+ ;;
32 flowtype)
33 _describe -t points "Warp points" frontend_points && ret=0
34 ;;
35diff --git a/plugins/frontend-search/frontend-search.plugin.zsh b/plugins/frontend-search/frontend-search.plugin.zsh
36index ed19280c4a9f40ea8671f4d946a8032ea3699d85..4517e21a80bfbdc521bda0475e75fab563e72999 100644
37--- a/plugins/frontend-search/frontend-search.plugin.zsh
38+++ b/plugins/frontend-search/frontend-search.plugin.zsh
39@@ -19,6 +19,7 @@ alias lodash='frontend lodash'
40 alias mdn='frontend mdn'
41 alias nodejs='frontend nodejs'
42 alias npmjs='frontend npmjs'
43+alias packagephobia='frontend packagephobia'
44 alias qunit='frontend qunit'
45 alias reactjs='frontend reactjs'
46 alias smacss='frontend smacss'
47@@ -65,6 +66,7 @@ function frontend() {
48 mdn 'https://developer.mozilla.org/search?q='
49 nodejs $(_frontend_fallback 'nodejs.org/en/docs/')
50 npmjs 'https://www.npmjs.com/search?q='
51+ packagephobia 'https://packagephobia.now.sh/result?p='
52 qunit 'https://api.qunitjs.com/?s='
53 reactjs $(_frontend_fallback 'reactjs.org/')
54 smacss $(_frontend_fallback 'smacss.com')
55@@ -82,7 +84,7 @@ function frontend() {
56 print -P "%Uterm%u and what follows is what will be searched for in the %Ucontext%u website,"
57 print -P "and %Ucontext%u is one of the following:"
58 print -P ""
59- print -P " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
60+ print -P " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow, packagephobia"
61 print -P " dartlang, emberjs, fontello, flowtype, github, html5please, jestjs, jquery, lodash,"
62 print -P " mdn, npmjs, nodejs, qunit, reactjs, smacss, stackoverflow, unheap, vuejs, bundlephobia"
63 print -P ""
64@@ -98,7 +100,7 @@ function frontend() {
65 echo ""
66 echo "Valid contexts are:"
67 echo ""
68- echo " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
69+ echo " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow, packagephobia"
70 echo " dartlang, emberjs, fontello, github, html5please, jest, jquery, lodash,"
71 echo " mdn, npmjs, nodejs, qunit, reactjs, smacss, stackoverflow, unheap, vuejs, bundlephobia"
72 echo ""