Get domain name from url
npm i namifylink
const namifyLink = require('namifylink');
const fileName = namifyLink('https://github.com/arshadkazmi42');
console.log(fileName);
// Output
// github-com
const fileName = namifyLink('https://mail.google.com/arshadkazmi42');
console.log(fileName);
// Output
// mail-google-com
Interested in contributing to this project? You can log any issues or suggestion related to this library here
Read our contributing guide on getting started with contributing to the codebase