1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
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;
|