You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be able to call fixWhitespace with input lines, in addition to the ability of using it as a template tag. (This would likely involve having a new, separate, function.)
Have a way of controlling what fixWhitespacedoes (e.g., don't remove trailing newlines).
I've seen a few libraries/demos do something like this:
constcreateWhitespaceFixer=require('fix-whitespace')constfixWS=createWhitespaceFixer({/* ..opts.. */})console.log(fixWS` Lorem ipsum! Magic! Additional lines!${"Embeds!\n".repeat(5)} ..And other general usage of fixWS, blah, blah.`)
edit: This would, of course, be a major version bump.
The text was updated successfully, but these errors were encountered:
fixWhitespace
with input lines, in addition to the ability of using it as a template tag. (This would likely involve having a new, separate, function.)fixWhitespace
does (e.g., don't remove trailing newlines).I've seen a few libraries/demos do something like this:
edit: This would, of course, be a major version bump.
The text was updated successfully, but these errors were encountered: