Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support join option #21

Closed
scottrippey opened this issue Jul 25, 2018 · 1 comment
Closed

Feature request: support join option #21

scottrippey opened this issue Jul 25, 2018 · 1 comment
Labels
status: wontfix This will not be worked on

Comments

@scottrippey
Copy link

I would like a "join" option, so that multi-line strings could be both dedented and joined into a single line.
Example:

example = dedent(' ', `
  This is a
  multiline string
  that is joined with spaces
  instead of newlines.
`); // "This is a multiline string that is joined with spaces instead of newlines."

A little backstory, I actually have my own dedent function implemented in several projects, and use it constantly! I found this repo when thinking about publishing my dedent. I'm glad to see it already exists!
This 'join' feature is something I use quite often, too, so I'm hoping its something I could add to this project.
Let's discuss?

@JoshuaKGoldberg
Copy link
Collaborator

Interesting idea! Seems a little out of scope for the project at this point though (#36). Maybe a good new package to publish on its own?

@JoshuaKGoldberg JoshuaKGoldberg added the status: wontfix This will not be worked on label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants