bigbuffet-rw/app/soapbox/utils/code.js

12 lines
264 B
JavaScript
Raw Normal View History

2021-03-30 10:43:45 -07:00
// @preval
const pkg = require('../../../package.json');
const shortRepoName = url => new URL(url).pathname.substring(1);
module.exports = {
name: pkg.name,
url: pkg.repository.url,
repository: shortRepoName(pkg.repository.url),
version: pkg.version,
};