Global

Methods

checkFileExtension(fileName:)

Source:
Function to check whether file is JS or JSX. This is used to define the parser to prettify code. Currently only JS is supported. More formats are in development.
Parameters:
Name Type Description
fileName: Name of the file.
Returns:
string: '.js' or '.jsx'

codeSnipper()

Source:
Main function. Set default arguments, if options are not passed

prettify()

Source:
Prettify code based on the extension of the file.