import request from '../utils/request' ; export function getDirectoryTrees ( pkg ) { return request ( `https://unpkg.com/${ pkg }/?meta` , { method : 'GET' , } ) ; } export function getFileContent ( path ) { return request ( `https://unpkg.com/${ path }` , { method : 'GET' , } ) ; }