import { PackageParser } from './base' ; export class PackageJSONParser extends PackageParser { static filename = 'package.json' ; protected static parserRaw ( raw ) { const { dependencies = { } , devDependencies = { } , peerDependencies = { } , } = JSON . parse ( raw ) ; return [ ... Object . keys ( dependencies ) , ... Object . keys ( devDependencies ) , ... Object . keys ( peerDependencies ) ] ; } }