nl_tokens: @module @lobsangnet / lobsang - processor - hostname Library to process the hostname from an URL .
pl_tokens: function lobsangProcessorHostname ( link ) { let <mask> try { parts = parseUrl ( link ) } catch ( error ) { return Promise . reject ( error ) } if ( parts . hostname === '' ) { return Promise . reject ( new Error ( 'Not an URL' ) ) } return Promise . resolve ( parts . hostname ) }