Sha256: 1d8866b4dd6840b3993a6fc6da298aaa73b519c6542651cd2e3ed6313fed2fac

Contents?: true

Size: 644 Bytes

Versions: 24

Compression:

Stored size: 644 Bytes

Contents

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;

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/trim-newlines/index.d.ts
trusty-cms-5.0.7 node_modules/trim-newlines/index.d.ts
trusty-cms-5.0.6 node_modules/trim-newlines/index.d.ts
trusty-cms-5.0.5 node_modules/trim-newlines/index.d.ts
trusty-cms-5.0.4 node_modules/trim-newlines/index.d.ts
trusty-cms-5.0.3 node_modules/trim-newlines/index.d.ts
trusty-cms-5.0.2 node_modules/trim-newlines/index.d.ts
trusty-cms-5.0.1 node_modules/trim-newlines/index.d.ts
trusty-cms-4.3.5 node_modules/trim-newlines/index.d.ts
trusty-cms-5.0.0 node_modules/trim-newlines/index.d.ts
trusty-cms-4.3.4 node_modules/trim-newlines/index.d.ts
trusty-cms-4.3.3 node_modules/trim-newlines/index.d.ts
trusty-cms-4.3.2 node_modules/trim-newlines/index.d.ts
trusty-cms-4.3.1 node_modules/trim-newlines/index.d.ts
trusty-cms-4.3 node_modules/trim-newlines/index.d.ts
trusty-cms-4.2.3 node_modules/trim-newlines/index.d.ts
trusty-cms-4.2.2 node_modules/trim-newlines/index.d.ts
trusty-cms-4.2.1 node_modules/trim-newlines/index.d.ts
trusty-cms-4.2 node_modules/trim-newlines/index.d.ts
trusty-cms-4.1.9 node_modules/trim-newlines/index.d.ts