1.0.0 • Published 1 year ago

newlinechar v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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 ikhan77727@gmail.com. LinkedIn: https://www.linkedin.com/in/imrankhan001/

P.S: I excel in Remote Work Only