getAppName()

Get the current application name, this is used to differentiate between several different applications running on the same address e.g localhost:8080 to have separate mocking data.

If an app name was not defined an empty string will be returned.

Please see setAppName for more details on setting the application name.

import Mimic from 'mimic';

// Assuming app name was set before as 'MyApp'
console.log(Mimic.getAppName()) // Outputs: MyApp