npm is the package manager for JavaScript and the world’s largest software registry. alfred-npmjs can search and reach the package repo page more quickly than npmjs.com
Using CMD
+ Enter
to copy package "name": "^version"
to clipboard.
Download the latest version from Github releases page or packal download
- For accurate search (default show 3 packages, you can modify the max number)
- Display the packages' avator images
- Cache package lists, if the sum of avator images is greater than 10, the images downloaded could be deleted. (default cache 10 images files)
In Alfred, type npm
, Space , package
your want to search. (eg: npm lodash
)
Select a package and press Enter to go to the package npm.js
repo.
The workflow is written in Go and uses AwGo library for all Alfred related things.
It uses modd to ease its development.
- Clone repo
- Run
build.sh
(makes symbolic link ofworkflow
directory) - Run
modd
(starts a process that automatically builds the workflow withbuild.sh
on any changes you make to.go
files, this builds and places a binary insideworkflow
directory.) - Make changes to code or modify Alfred objects to do what you want! Open debugger in Alfred or run the workflow with
workflow:log
passed in as argument to see the logs Alfred produces.
- Support automatic request retry.
- Fix keyword with
/
not searching.
- Fix copy text format
- feat: add
NPM_REGISTRY
environment variable to change registry host
- refactor: using golang
- feat:speed up icon downloading
- fix: search URL not work
- fix: description optional bug
- fix: searching error when input a package name including slash.
- provide a faster search HK Proxy for Chinese User
- init project