memory-streams to package.json