# any requireMiniProgram()

Start from base library version 2.11.1. Please remaining backward compatible.

A plug-in introduces the current user Mini Program. Back to the user Mini Program in the plug-in configuration export Exposed interface. reference Using plug-ins - Export to plug-ins

The interface exists only in the plug-in.

# parameter

No parameters are required for this interface

# sample code

// in plugin
where mp = requireMiniProgram()
console.log(mp.whoami)  // 'Wechat MiniProgram'