Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

code-block-writer

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-block-writer - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

35

code-block-writer.d.ts

@@ -0,19 +1,20 @@

declare class CodeBlockWriter {
private _currentIndentation;
private _text;
private _numberSpaces;
private _lastWasNewLine;
constructor(opts?: { newLine: string });
block(block: () => void): CodeBlockWriter;
getLength(): number;
writeLine(str: string): CodeBlockWriter;
newLineIfLastCharNotNewLine(): CodeBlockWriter;
newLine(): CodeBlockWriter;
spaceIfLastNotSpace(): CodeBlockWriter;
write(str: string): CodeBlockWriter;
toString(): string;
private _getCurrentIndentationNumberSpaces();
}
declare module "code-block-writer" {
class CodeBlockWriter {
private _currentIndentation;
private _text;
private _numberSpaces;
private _lastWasNewLine;
constructor(opts?: { newLine: string });
block(block: () => void): CodeBlockWriter;
getLength(): number;
writeLine(str: string): CodeBlockWriter;
newLineIfLastCharNotNewLine(): CodeBlockWriter;
newLine(): CodeBlockWriter;
spaceIfLastNotSpace(): CodeBlockWriter;
write(str: string): CodeBlockWriter;
toString(): string;
private _getCurrentIndentationNumberSpaces();
}
export default CodeBlockWriter;
export = CodeBlockWriter;
}
{
"name": "code-block-writer",
"version": "1.7.0",
"version": "1.7.1",
"description": "A simple code writer that assists with formatting and visualizing blocks of code.",

@@ -5,0 +5,0 @@ "main": "dist/code-block-writer.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc