subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def npm_search(package: str, limit: int = 5) -> list: """Search NPM for packages.""" try: result = subprocess.run( ["npm", "search", package, "--json"], capture_output=True, text=True )- Confidence
- 80% confidence
- Finding
- result = subprocess.run( ["npm", "search", package, "--json"], capture_output=True, text=True )
