A shim is code which intercepts an API method call and provides a layer of abstraction to facilitate cross-platform development
A shim is an emulation layer which is intended to allow code to be written to a specification by transparency handling deviations from it among various environments on which the code is deployed.
References