Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 592 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 592 Bytes

Generate scaffolding for asynchronous Redux actions, in the style of redux-thunk middleware.

Usage

Usage:

	./thunk verb noun

For example, “fetch” and “bone” will result in a fetchBone(bone) 
action creator and a BONE_FETCH_RECEIPT constant, among others. 
Use lowerCamelCase for compound words, such as “dogBone”.

Typically you’d pipe stdout to your clipboard and paste into 
where your actions are stored.

	./thunk fetch bone | pbcopy # OS X
	./thunk fetch bone >> my-actions.js