🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@darabonba/emitter

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darabonba/emitter

The emitter for codegen

latest
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

Emitter for Codegen

NPM version build status codecov David deps npm download

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

FAQs

Package last updated on 07 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts