blob: 418572004c29544a9d69c0ee671af1058a8febf1 [file] [log] [blame]
declare const trimNewlines: {
/**
Trim from the start and end of a string.
@example
```js
import trimNewlines = require('trim-newlines');
trimNewlines('\nšŸ¦„\r\n');
//=> 'šŸ¦„'
```
*/
(string: string): string;
/**
Trim from the start of a string.
@example
```js
import trimNewlines = require('trim-newlines');
trimNewlines.start('\nšŸ¦„\r\n');
//=> 'šŸ¦„\r\n'
```
*/
start(string: string): string;
/**
Trim from the end of a string.
@example
```js
import trimNewlines = require('trim-newlines');
trimNewlines.end('\nšŸ¦„\r\n');
//=> '\nšŸ¦„'
```
*/
end(string: string): string;
};
export = trimNewlines;