Remove empty lines
Open
Nobody has claimed this yet.
bug
- Dominant language
- JavaScript
- Stars
- 495
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to remove empty lines in files using gulp-replace? I've tried this, but it didn't work:
.pipe(replace(/^\s*$/, '', { skipBinary: true }))
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with gulp-replace and reproduce the supplied replace(/^\s*$/, '', { skipBinary: true }) example against a file containing empty lines. Determine whether the plugin can remove those lines, and verify that the completed behavior leaves no empty lines while preserving other content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100