newlinechar
v1.0.0
Published
This package is used to replace new lines with new line character and vice versa.
Maintainers
Readme
About
This package is used to replace new lines with new line character and vice versa.
Usage
import { replaceNewLinesWithNewLineCharacter, replaceNewLineCharactersWithNewLines } from newlinechar;
const text = 'Hello\nWorld';
console.log(replaceNewLinesWithNewLineCharacter(text));
// Output:
// Hello\nWorld
console.log(replaceNewLineCharactersWithNewLines(text));
// Output:
// Hello
// World
Hire Me
Want to work with a kickass frontend dev?
Email me at [email protected]. LinkedIn: https://www.linkedin.com/in/imrankhan001/
P.S: I excel in Remote Work Only
