Socket
Book a DemoInstallSign in
Socket

@ao-framework/writer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ao-framework/writer

The writer is a library that was created to assist in developing multi-line strings for such things as code generation, documentation and error handling with custom templates.

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source


Writer

The writer is a library that was created to assist in developing multi-line strings for such things as code generation, documentation and error handling with custom templates.

Installation

npm install @ao-framework/writer

Import

import Writer from "@ao-framework/writer";

Usage

import Writer from "@ao-framework/writer";

let str = new Writer()
    .align("left")
    .indent(2)
    .line("I should be right against edge.")
    .line("So should I.", () => {
        writer.line("I should be indented 2 spaces", () => {
            writer.line("I should be indented 4 spaces")
        })
    }).getString()

console.log(str)

Outputs

I should be right against edge.
So should I.
  I should be indented 2 spaces
    I should be indented 4 spaces

FAQs

Package last updated on 08 Mar 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.