the-seat
Shared value manager
Installation
$ npm install the-seat --save
Usage
'use strict' const theSeat = { const seat = const ports = seatscope'ports' const myapp01 = ports console // -> true myapp01 console // -> true console // -> false const myapp02 = ports console // -> false, because myapp01 already took it. myapp02 /* ... */ // Define utility method to take port const portFor = { const get take has canTake = ports if return let taking = portBase while ! taking += 1 return } const portForApp3 = /* ... */ }
API Guide
License
This software is released under the MIT License.