0.3.0 • Published 6 years ago

@phensley/espoet v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

espoet - simple api for ecmascript source code generation.

Build Status Coverage Status

This project grew out of work I was doing on a separate project. I needed to generate some ES modules that would live alongside the rest of the project's source code.

I needed a very simple API that improved on concatenating a bunch of strings together, but was less verbose than manipulating AST directly.

The primary goal was allow me to build code and make fewer mistakes, e.g. escape strings, support simple formatting arguments, etc.

Validation and final formatting is done by passing the resulting string through prettier.

Approach inspired by Javapoet.