expando-atom

Instant data snippets

expandoco

502

4

0.0.20

MIT

GitHub

Expando generates instant data snippets for the Atom editor

Expando for atom

Installing

Use the Atom package manager, which can be found from the Settings menu or use the command line:

apm install expando-atom

Basic usage

Type Expando syntax and then run the Expando: Expand command or press SHIFT+ENTER. Use CTRL+` for expand-and-beautify combination*.

Note: The expand-and-beautify feature is dependent on atom-beautify and is only available if you have this package installed.

The following basic types are supported:

More advanced types include:

Separate each type with a comma (,)

fname,lname,age

Specify custom field aliases by using a colon (:)

firstName:fname,lastName:lname

Use brackets for child level objects

company,profile:(open:float,close:float)

For object arrays, use astrix (*)

(fname)*10

For simple arrays, use @

tweet:string,tags@5

The default generation is json, but xml and csv is also supported

items:(string,int)*10=xml

or

(company,price:float)*10=csv