open-index/open-npm huggingface dataset:
npm package: @phensley/espoet
Description: Ecmascript code generation API
Author: Patrick Hensley
Latest version: 0.3.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.


### espoet - simple api for ecmascript source code generation.

[![Build Status](https://travis-ci.org/phensley/espoet.svg?branch=master)](https://travis-ci.org/phensley/espoet)
[![Coverage Status](https://img.shields.io/coveralls/phensley/espoet.svg)](https://coveralls.io/github/phensley/espoet?branch=master)

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].

[prettier]: https://prettier.io/
[Javapoet]: https://github.com/square/javapoet