Skip to content

boneskull/alfred-npms

Repository files navigation

alfred-npms (download v0.4.1)

Alfred 3 workflow for npms.io

screenshot

Commands

  • npm <query>: Search npms.io with query; open package on npmjs.com. Example: npm socket will return a list of packages matching name "socket", keyword "socket", etc.

    Modifiers:

    • : Open package repository.
    • : Open package homepage (this often roughly the same as the repository URL).
  • npms cleardb: Clears internal cache. By default, search results are cached for one (1) day.

Environment Variables

These are set within the workflow configuration and can be altered to better suit your usage.

  • NPMS_CACHE_EXPIRATION: Number of seconds to keep search results. Defaults to 86400 (one day).

License

Copyright 2016 Christopher Hiller. Licensed MIT.