1.6.3 • Published 5 years ago

nodedomain-util v1.6.3

Weekly downloads
8
License
GNU V3
Repository
github
Last release
5 years ago

nodedomain-util

A set of pure functions for easy domain string manipulation written in JavaScript for Node

NPM: https://www.npmjs.com/package/nodedomain-util

Installation:

$ npm install nodedomain-util

Use example:

const ndt = require('nodedomain-util');

let url = 'https://www.github.com/ChoqueCastroLD/nodedomain-util.git';

ndt.cleanUrl(url)
// Returns 'www.github.com'

ndt.getDomain(url)
// Returns 'github.com'

ndt.getSubDomain(url)
// Returns 'www'
1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.2

5 years ago

1.0.0

5 years ago