npm shrinkwrap parsing, generation and comparison