Requires

  • module:module

Methods

(static) getLanguageColor(name) → {string}

Returns the language hex color code from the language_colors.json file

Parameters:
NameTypeDescription
namestring

Name of the language

Returns:

Hex color code

Type: 
string

(static) getTheme(name) → {Object}

Returns the theme object from the themes.json file

Parameters:
NameTypeDescription
namestring

Name of the theme

Returns:

Theme object

Type: 
Object

(static) wrapDescription(description, chars) → {string}

Wraps the description of a gist after a certain number of characters

Parameters:
NameTypeDescription
descriptionstring

Gist description

charsnumber

Number of characters to wrap

Returns:

Wrapped description for SVG

Type: 
string