import React from "react" import axios from "axios" import config from "@config" import "./index.less" async function readLicenses() { const { data } = await axios.get(config.ossLicensesUrl) return data } const PackageItem = (props) => { const { name, version, author, license } = props.pkg async function openLicenseView(id) { const { data } = await axios.get(`https://licenses.opendefinition.org/licenses/${id}.json`) window.open(data.url, "_blank") } return
Version: {version}
{ author && (author.name ?Author: {author.name}
:Author: {author}
) }License: {license}
❤️ {config.app.siteName} works thanks to all the amazing following open source libraries. ❤️