3 A sorting hat, sorts you to a variety of sets based on the assignment of
8 This package can be used as a standalone executable or as a library
9 inside other node applications
13 It can be used as a local or global installation
18 $ npm install sorting-hat
25 $ npm install -g sorting-hat
29 #### Overriding configuration in the binary
31 The binary uses environment variables to override the defaults
33 * `SORTING_HAT_DEVICE_LOCATION`: The path from where we'll listen to the
34 mindwave, defaults to `/dev/tty.MindWaveMobile-SerialPo`
35 * `SORTING_HAT_MAPPING_STRATEGY`: The strategy used to sort the waves,
36 it defaults to `tmnt`. That is also the only supported value as of
38 * `SORTING_HAT_PORT`: The port on which we'll start the websocket server
39 to send state updates to the frontends
43 You can include it in other libraries by requiring the file. For more
44 information on the public API and the used data structures, please check
50 const sortingHat = new SortingHat({
51 deviceLocation: '/dev/tty.MindWaveMobile-SerialPo',
52 mappingStrategy: 'tmnt',
58 At the moment it's not built right, so you can't really do much with
59 this mode. But you can do it.
61 ## Further Improvements
63 * Give independent weights to each wave and category so we can balance
64 * Allow actual use as a library