Skip to content

arshadkazmi42/namifylink

Repository files navigation

namifylink

Build NPM Version NPM Downloads Github Repo Size LICENSE Contributors Commit

Get domain name from url

Install

npm i namifylink

Usage

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

Contributing

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