New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fix-commas

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fix-commas

Fix comma style in a project

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fix-commas

A simple CLI tool to convert a JavaScript file from comma-first to comma-last.

Why

Because ESLint's --fix option for comma-style doesn't work properly.

Installation

npm i -g fix-commas

Usage

$: fix-commas --help

  Usage: fix-commas [options]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    --fix          Overwrite file with fixed code

Omitting --fix prints the fixed text to stdout.

Known limitations

This tool is pretty bare-bones:

  • Only partial support for comments
  • Only goes from comma-first to comma-last, not the other way around

If you'd like to improve this project, pull requests are welcomed!

Please review the changes made with this tool; don't run it and commit blindly.

License

MIT.

FAQs

Package last updated on 24 Aug 2017

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

  • 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