Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
merge
Commit Description:
merge
/**
* Wrap words to a specified length.
*/
export = wrap;
declare function wrap ( str : string , options ? : wrap . IOptions ) : string;
declare namespace wrap {
export interface IOptions {
/**
* The width of the text before wrapping to a new line.
* @default ´50´
*/
width ? : number;
/**
* The string to use at the beginning of each line.
* @default ´ ´ (two spaces)
*/
indent ? : string;
/**
* The string to use at the end of each line.
* @default ´\n´
*/
newline ? : string;
/**
* An escape function to run on each line after splitting them.
* @default (str: string) => string;
*/
escape ? : ( str : string ) => string;
/**
* Trim trailing whitespace from the returned string.
* This option is included since .trim() would also strip
* the leading indentation from the first line.
* @default true
*/
trim ? : boolean;
/**
* Break a word between any two letters when the word is longer
* than the specified width.
* @default false
*/
cut ? : boolean;
}
}
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings