summaryrefslogtreecommitdiff
path: root/plugins/frontend-search/frontend-search.plugin.zsh
diff options
context:
space:
mode:
authorWill Mendes <willmendesneto@gmail.com>2020-05-19 11:33:47 -0300
committerGitHub <noreply@github.com>2020-05-19 16:33:47 +0200
commit8b51d17c469a7bafa1193d8af2a52e0d4c645eef (patch)
tree18fcb230ee539f73de42b6be51b6af3802d1c012 /plugins/frontend-search/frontend-search.plugin.zsh
parentf7bf566555a2c0e87deba5dfb3e344f23f4a51bb (diff)
downloadzsh-8b51d17c469a7bafa1193d8af2a52e0d4c645eef.tar.gz
zsh-8b51d17c469a7bafa1193d8af2a52e0d4c645eef.tar.bz2
zsh-8b51d17c469a7bafa1193d8af2a52e0d4c645eef.zip
frontend-search: add packagephobia (#8908)
Diffstat (limited to 'plugins/frontend-search/frontend-search.plugin.zsh')
-rw-r--r--plugins/frontend-search/frontend-search.plugin.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/frontend-search/frontend-search.plugin.zsh b/plugins/frontend-search/frontend-search.plugin.zsh
index ed19280c4..4517e21a8 100644
--- a/plugins/frontend-search/frontend-search.plugin.zsh
+++ b/plugins/frontend-search/frontend-search.plugin.zsh
@@ -19,6 +19,7 @@ alias lodash='frontend lodash'
alias mdn='frontend mdn'
alias nodejs='frontend nodejs'
alias npmjs='frontend npmjs'
+alias packagephobia='frontend packagephobia'
alias qunit='frontend qunit'
alias reactjs='frontend reactjs'
alias smacss='frontend smacss'
@@ -65,6 +66,7 @@ function frontend() {
mdn 'https://developer.mozilla.org/search?q='
nodejs $(_frontend_fallback 'nodejs.org/en/docs/')
npmjs 'https://www.npmjs.com/search?q='
+ packagephobia 'https://packagephobia.now.sh/result?p='
qunit 'https://api.qunitjs.com/?s='
reactjs $(_frontend_fallback 'reactjs.org/')
smacss $(_frontend_fallback 'smacss.com')
@@ -82,7 +84,7 @@ function frontend() {
print -P "%Uterm%u and what follows is what will be searched for in the %Ucontext%u website,"
print -P "and %Ucontext%u is one of the following:"
print -P ""
- print -P " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
+ print -P " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow, packagephobia"
print -P " dartlang, emberjs, fontello, flowtype, github, html5please, jestjs, jquery, lodash,"
print -P " mdn, npmjs, nodejs, qunit, reactjs, smacss, stackoverflow, unheap, vuejs, bundlephobia"
print -P ""
@@ -98,7 +100,7 @@ function frontend() {
echo ""
echo "Valid contexts are:"
echo ""
- echo " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
+ echo " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow, packagephobia"
echo " dartlang, emberjs, fontello, github, html5please, jest, jquery, lodash,"
echo " mdn, npmjs, nodejs, qunit, reactjs, smacss, stackoverflow, unheap, vuejs, bundlephobia"
echo ""