detect-node

Detect Node.JS (as opposite to browser environment) (reliable)

detect-browser

Unpack a browser type and version from the useragent string