@preval sourceCode
This commit is contained in:
11
app/soapbox/utils/code.js
Normal file
11
app/soapbox/utils/code.js
Normal file
@ -0,0 +1,11 @@
|
||||
// @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,
|
||||
};
|
||||
Reference in New Issue
Block a user