pub fn extract_package_json_from_str(
file: &str,
content: &str,
enabled_keywords: &[&'static str],
) -> Vec<ExtractedCommand>Expand description
Extract executable scripts from package.json.
Extracts:
- All values in
scriptsobject (these are npm script commands) - Lifecycle scripts: preinstall, postinstall, prepublish, etc.
Does NOT extract:
description,keywords,repositoryfields- Values in
configor other non-executable fields