Any thoughts about using npm programmatically here instead of shelling out?