How to use the primus.transformers function in primus

To help you get started, we’ve selected a few primus 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 zeit / pkg / test / test-79-npm / primus / primus.js View on Github external
'use strict';

var primus = require('primus');
if (primus.transformers) {
  console.log('ok');
}

primus

Primus is a simple abstraction around real-time frameworks. It allows you to easily switch between different frameworks without any code changes.

MIT
Latest version published 12 months ago

Package Health Score

70 / 100
Full package analysis