Global

Methods


getRequireFromLine(l)

Plucks a require statment from a given line of code, e.g passing the line "app.use(require('lib/routes'))" would return "require('lib/routes')"
Parameters:
Name Type Description
l String
Returns:
Type
String | null

getTextFromRequire(req)

Plucks the specific require string from a require statment, e.g given "require('lib/routes')" this would return "lib/routes"
Parameters:
Name Type Description
req String
Returns:
Type
String