New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

url-builder-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-builder-js

A package that assembles URLs, primarily made for discord bots.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

url-builder

A package that builds URLs through JavaScript

Usage

const url = new URL().isWWW(false).isHTTP(false).setDomain("github").setEnding("com").addDirectory("galactic-packages").addDirectory("url-builder").getURL();
console.log(url);

This outputs https://github.com/galactic-packages/url-builder/

Types

AttributeData TypeDescription
URL()classUsed to set the URL object
.isWWW()booleanSpecifies if the domain includes www
.isHTTP()booleanSpecifies if the domain is http or https
.setSubdomain()stringSets the subdomain of the URL
.setDomain()stringSets the domain of the url
.setEnding()stringSets the ending of the url (com, org, net, edu, etc)
.addDirectory()stringAdd a directory to the URL
.getURL()noneReturns the whole URL, with the settings specified above

Optional Settings

The settings above are optional excluding .setDomain() and .setEnding(). All other settings are set automatically, unless specified by the user.

Keywords

url

FAQs

Package last updated on 13 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts