lib/core.js
function(str, lim, suff){
	var ret = str;
	
	var limit = 10;
	if( lim ){ limit = lim; }

	var suffix = '';
	if( suff ){ suffix = suff; }
	
	if( str.length > limit ){
	    ret = str.substring(0, (limit - suffix.length)) + suffix;
	}
	return ret;
    }
function(str, lim, suff){
	var ret = str;
	
	var limit = 10;
	if( lim ){ limit = lim; }

	var suffix = '';
	if( suff ){ suffix = suff; }
	
	if( str.length > limit ){
	    ret = str.substring(0, (limit - suffix.length)) + suffix;
	}
	return ret;
    }
function ( str , lim , suff ) { var ret = str ; var limit = 10 ; if ( lim ) { limit = lim ; } var suffix = '' ; if ( suff ) { suffix = suff ; } if ( str . length > limit ) { ret = str . substring ( 0 , ( limit - suffix . length ) ) + suffix ; } return ret ; }
Crop a string nicely.

Returns: Nothing. Side-effects: throws an error if the namespace
defined by the strings is not currently found.

@param {} str - the string to crop
@param {} lim - the final length to crop to (optional, defaults to 10)
@param {} suff - the string to add to the end (optional, defaults to '')
@returns {string} cropped string
Crop a string nicely .