Added state generator to npm package