Base (i.e., lower-level) string functions.
var string = require( '@stdlib/string/base' );
Namespace containing "base" (i.e., lower-level) string functions.
var ns = string;
// returns {...}
The namespace has the following sub-namespaces:
capitalize( str )
: capitalize the first character in a string.endsWith( str, search, len )
: test if a string ends with the characters of another string.formatInterpolate( tokens, ...args )
: generate string from a token array by interpolating values.formatTokenize( str )
: tokenize a string into an array of string parts and format identifier objects.ltrim( str )
: trim whitespace characters from the beginning of a string.replace( str, search, newval )
: replace search occurrences with a replacement string.rtrim( str )
: trim whitespace characters from the end of a string.trim( str )
: trim whitespace characters from the beginning and end of a string.
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/string/base' );
console.log( objectKeys( ns ) );