Converts the selected JS lines to string (single-line/concatenated).
Concatenated
Single-line
apm install js-to-string
Settings
> Install
> Search packages for js-to-string
.Install
and then reload
Atom./users/YOUR_USERNAME/.atom/packages
.npm install
.Ctrl + Alt + Shift + S
on Windows or Cmd + Alt + Shift + S
on Mac.JS to string
.Packages
> JS to string
> Convert
.Style
: Choose between single-line or concatenated. Default: concatenated
.Quotes
: Use single or double quotes to wrap the string. Default: single
.Strip comments
: Generate the string without the commented-out lines. Default: false
.Include whitespaces
: If this is unchecked, any tabs or new line characters will be stripped. Default: true
.Add trailing character
: Insert a custom character after the quotes. Default: true
.Trailing character
: The character that will be inserted at the end of the string, after the quotes. Default: ;
.Beautify
: The selected code will be first beautified before it's stringified. Default: true
.Indent size
: Number of spaces used to represent a tab. Default: 2
.Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.