Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict'; var primus = require('primus'); if (primus.transformers) { console.log('ok'); }
Primus is a simple abstraction around real-time frameworks. It allows you to easily switch between different frameworks without any code changes.