Skip to content

aredridel/serialport-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

serialport-1

A re-export of serialport@1.

Use

Instead of require('serialport'), use require('serialport-1')

This allows you to depend on either serialport@1 or serialport@2 depending on which installs successfully:

var serialport
try {
    serialport = require('serialport-2');
} catch (e) {
    if (e.code != 'MODULE_NOT_FOUND') throw e;

    serialport = require('serialport-1');
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published