You can wrap the callback-based function using the Promise constructor, resolving or rejecting the Promise based on the callback's outcome.