🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

semicolonize

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semicolonize

Fixes semicolons in JS source code

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Semicolonize

Semicolonize is a simple command line tool to fix semicolons in your JS code.

This tool does exactly what it is expected to do, missing semicolons are inserted, extra semicolons are removed. Nothing else.

All formatting and whitespaces (including trailing ones) are preserved. The diff would only contain added or removed semicolons.

Installation

Run npm install semicolonize -g. It is expected you already have node and npm installed.

Usage

semicolonize [filename] [filename] […]

The "standalone" version takes provided files, fixes semicolons and writes the result back into the same file.

If no filenames were provided, semicolonize works reads source from stdin and writes to stdout.

Currently there's no options (except --help).

As a module

Semicolonize can be used in node environment as a module. require('semicolonize') returns a function with following signature:

semicolonize(/*string */ sourceCode)

Returns a string, the code with corrected semicolons.

Keywords

semicolon

FAQs

Package last updated on 15 Jul 2015

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