Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 1.27 KB

README.md

File metadata and controls

39 lines (20 loc) · 1.27 KB

j2e Alfred workflow

Alfred workflow to convert between JSON and EDN

This is fast-n-dirty Alfred workflow that transforms JSON files to EDN format or vice versa. The conversion is local, so you may not be afraid of your client's data leaks.

This may be useful for some paranoid Clojure developers.

Installation

j2e workflow depends on borkdude's great utility called jet. You have to install if before using this workflow.

  • Install brew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  • Install jet: brew install borkdude/brew/jet

Demo

j2e demo

Usage

  • Copy your JSON data into the clipboard (usually with CMD+C)

  • Start Alfred prompt and enter j2e. Press ENTER. Now your EDN data should replace your JSON data in the clipboard.

  • Click in any text editor or form where you need your EDN and press CMD+V.

(if you need to convert EDN to JSON, do exactly same, except the Alfred keyword will become e2j.

Known problems

  1. Invalid data will be silently ignored, not converted.

What are those formats?