Glossary: Software Design Patterns in JavaScript
Adapter
Also written: adapters
A small wrapper class that holds a library object you can't edit and offers the interface your code expects. UpsCarrier adapts UPS's cents-based API to a quote(items) method that returns dollars.