vulnzap-core
Version:
Secure AI-generated code by intercepting vulnerabilities in real-time
68 lines (67 loc) • 2.08 kB
TypeScript
/**
* Parse an npm package.json file
*
* @param {string} filePath - Path to package.json
* @returns {Promise<Object>} - Parsed dependencies
*/
export function parsePackageJson(filePath: string): Promise<any>;
/**
* Parse a pip requirements.txt file
*
* @param {string} filePath - Path to requirements.txt
* @returns {Promise<Object>} - Parsed dependencies
*/
export function parseRequirementsTxt(filePath: string): Promise<any>;
/**
* Parse a Go modules go.mod file
*
* @param {string} filePath - Path to go.mod
* @returns {Promise<Object>} - Parsed dependencies
*/
export function parseGoMod(filePath: string): Promise<any>;
/**
* Parse a Rust Cargo.toml file
*
* @param {string} filePath - Path to Cargo.toml
* @returns {Promise<Object>} - Parsed dependencies
*/
export function parseCargoToml(filePath: string): Promise<any>;
/**
* Parse a Maven pom.xml file
*
* @param {string} filePath - Path to pom.xml
* @returns {Promise<Object>} - Parsed dependencies
*/
export function parsePomXml(filePath: string): Promise<any>;
/**
* Parse a .NET project file (.csproj, .fsproj, etc.)
*
* @param {string} filePath - Path to project file
* @returns {Promise<Object>} - Parsed dependencies
*/
export function parseDotNetProject(filePath: string): Promise<any>;
/**
* Parse a PHP Composer composer.json file
*
* @param {string} filePath - Path to composer.json
* @returns {Promise<Object>} - Parsed dependencies
*/
export function parseComposerJson(filePath: string): Promise<any>;
/**
* Parse a package file based on the file path
*
* @param {string} filePath - Path to the package file
* @returns {Promise<Object>} - Parsed dependencies or null if unsupported
*/
export function parsePackageFile(filePath: string): Promise<any>;
declare namespace _default {
export { parsePackageJson };
export { parseRequirementsTxt };
export { parseGoMod };
export { parseCargoToml };
export { parsePomXml };
export { parseDotNetProject };
export { parseComposerJson };
export { parsePackageFile };
}
export default _default;