How to use the mafmt.WebSocketStar function in mafmt

To help you get started, we’ve selected a few mafmt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github libp2p / js-libp2p-websocket-star / src / utils.js View on Github external
exports.validateMa = (ma) => mafmt.WebSocketStar.matches(multiaddr(ma))

mafmt

A multiaddr validator

MIT
Latest version published 3 years ago

Package Health Score

61 / 100
Full package analysis