Make library Atom/Node-Webkit agnostic