Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alfred-filter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alfred-filter

CLI for parsing JSON to Alfred's XML Filter

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

alfred-filter

NPM

CLI for parsing JSON to Alfred's XML Filter

Getting Started

Install the module with: npm install alfred-filter. Use -g to make it global.

Documentation

alfred-filter currently reads stringified json on stdin.

It also takes a few params:

  • -f, --filter [filter] A value to filter the property against
  • -v, --value [value] A property on the json to filter against
  • -i, --icon [icon] An icon to add to each item

Examples

Let's say you have some JSON from something like the andbang-cli (and you've installed that and alfred-filter globally).

andbang -m getMyTasks -p 1 | alfred-filter -f henrik -v title -i rocket.png

would output something like

<items><item arg="TASK_ID"><title>This task title has the word henrik in it!</title><icon>rocket.png</icon></item></items>

Release History

0.1.0 - Initial release. Only handles arrays

License

Copyright (c) 2013 Luke Karrys
Licensed under the MIT license.

FAQs

Package last updated on 08 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc