Emacs integration for quicktype.
- Emacs >= 27.1
- transient
- quicktype
Firstly ensure that you have installed quicktype
program.
npm i -g quicktype
Download the source code and put it wherever you like and add the directory to the load path:
(add-to-list 'load-path "/path/to/quicktype)
(require 'quicktype)
(use-package quicktype
:straight (:repo "KarimAziev/quicktype"
:type git
:host github)
:commands (quicktype))
Dispatch transient popup with available arguments and execute quicktype.
By default it will generate types from region or current buffer. You can also specify file, URL, or data directory (option --src
).
Alist of quicktype languages and modes.
Alist of default quicktype switches.
Alist of quicktype languages and modes.
url
reader should three args - prompt, initial input and history.