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

format-javascript-comment

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

format-javascript-comment - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

CONTRIBUTORS.md

2

lib/getRange.js

@@ -39,3 +39,3 @@ 'use babel';

curRow = range.end.row;
while (curRow < 1000) {
while (curRow < editor.getLineCount()) {
if (doesRowMatch(curRow)) range.end.row = curRow;

@@ -42,0 +42,0 @@ else break;

{
"name": "format-javascript-comment",
"main": "./lib/index",
"version": "0.2.4",
"version": "0.2.5",
"author": "Jan Amann <jan@amann.me>",

@@ -6,0 +6,0 @@ "description": "Format your JavaScript comments",

@@ -15,2 +15,4 @@ # Format JavaScript comment for Atom

- If some selection is made, only the lines that are within the selection will be processed. However, lines can be selected partially.
- Completely empty comment lines will be preserved.
- Processing of multiple comments at once using multiple cursors.

@@ -22,8 +24,1 @@ ## How?

4. Press enter.
## TODO
- Configurable line length
- Retain blank lines (already supported if the line is completely empty)
- Ignore non-comment lines
- Create a selection range across all modified lines at the end
- Support multiple cursors

@@ -13,2 +13,5 @@ 'use babel';

return lines[row];
},
getLineCount() {
return lines.length;
}

@@ -15,0 +18,0 @@ };

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