getTrait

getTrait returns the value of a Trait at the time it's called, so you can read its value without subscribing.

// using ES6 modules
import { getTrait } from 'temperjs'
// using CommonJS modules
const getTrait = require('temperjs').getTrait
const height = getTrait('height');