use `protocolify` module

https://github.com/sindresorhus/protocolify