Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

aliyun/darabonba-emitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emitter for Codegen

NPM version build status codecov David deps npm download license

Installation

$ npm i @darabonba/emitter -S

Usage

const Emitter = require('@darabonba/emitter');

const emtter = new Emitter();
emitter.emitln(`function demo() {`);
emitter.emitln(`console.log("Hello world!");`, 1);
emitter.emitln(`}`);

console.log(emitter.output);

The output:

function demo() {
  console.log("Hello world!");
}

License

The Apache License 2.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published