Skip to main content

Module utils

Module utils 

Source

Functions§

npm_purl
Creates a correctly-formatted npm Package URL for scoped or regular packages.
parse_sri
Parses Subresource Integrity (SRI) format and returns hash as hex string.
read_file_to_string
Reads a file’s entire contents into a String.
split_name_email
Parses “Name email@domain.com” format into separate components.