npm install @tryghost/social-urls --save
or
yarn add @tryghost/social-urls
const {twitter: makeTwitter, facebook: makeFacebook} = require('@tryghost/social-urls');
const socialUrls = [
makeTwitter('@ghost'), // https://twitter.com/ghost
makeFacebook('/ghost') // https://facebook.com/ghost
];
This is a mono repository, managed with lerna.
Follow the instructions for the top-level repo.
-
git clone
this repo &cd
into it as usual - Run
yarn
to install top-level dependencies.
yarn dev
-
yarn lint
run just eslint -
yarn test
run lint and tests
Copyright (c) 2013-2025 Ghost Foundation - Released under the MIT license.