All Projects β†’ adenekan41 β†’ urley

adenekan41 / urley

Licence: other
πŸ“¦ An easy cross-platform utility library to work with URLs in Javascript.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to urley

Prosemirror Utils
βš’ Utils library for ProseMirror
Stars: ✭ 241 (+1621.43%)
Mutual labels:  utils, helpers
Smart-Inspector
Fluent re-take on Unity Inspector UX. Packed with QoL improvements.
Stars: ✭ 680 (+4757.14%)
Mutual labels:  utils, helpers
utils.js
πŸ‘· πŸ”§ zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (+0%)
Mutual labels:  url, utils
Rails stuff
Collection of useful modules for Rails.
Stars: ✭ 110 (+685.71%)
Mutual labels:  utils, helpers
react-semantic-render
Semantic helper components for rendering content with React.
Stars: ✭ 13 (-7.14%)
Mutual labels:  utils, helpers
utils
⚑ A collection of common functions but with better performance, less allocations and less dependencies created for Fiber.
Stars: ✭ 21 (+50%)
Mutual labels:  utils, helpers
sagittarius
🎯 A set of javascript most used utilsπŸ“‘
Stars: ✭ 42 (+200%)
Mutual labels:  utils, helpers
toxic-decorators
Library of Javascript decorators
Stars: ✭ 26 (+85.71%)
Mutual labels:  utils
node-parameterize
parameterize.js
Stars: ✭ 36 (+157.14%)
Mutual labels:  url
core
πŸ”₯ Antares Core Implemenation. Most important project layer, this is the heart for your app. ACL, notifiter, console, geoip, areas, utils and many more...
Stars: ✭ 24 (+71.43%)
Mutual labels:  utils
wasi-worker
WASM / WASI interface for browser service workers
Stars: ✭ 31 (+121.43%)
Mutual labels:  rollup
django-etc
Tiny stuff for Django that won't fit into separate apps.
Stars: ✭ 26 (+85.71%)
Mutual labels:  utils
anikimiapi
A Simple, LightWeight, Statically-Typed Python3 API wrapper for GogoAnime.
Stars: ✭ 15 (+7.14%)
Mutual labels:  url
doi2bib
πŸ“ Easily convert Digital Object Identifier (DOI) and Uniform Resource Locator (URL) to BibTeX and DOI to plain text.
Stars: ✭ 28 (+100%)
Mutual labels:  url
ComoFazerUmaPerguntaPT
πŸ€” Farto de fazer perguntas e nΓ£o ser respondido? Aprenda agora a melhor forma de fazer uma pergunta πŸ”₯
Stars: ✭ 28 (+100%)
Mutual labels:  helpers
git-repo-name
Get the repository name from the git remote origin URL
Stars: ✭ 21 (+50%)
Mutual labels:  url
markushatvan.com
Personal website and blog written from scratch with SvelteKit and TailwindCSS.
Stars: ✭ 82 (+485.71%)
Mutual labels:  rollup
uri-parse-lib
Library for parse URI
Stars: ✭ 24 (+71.43%)
Mutual labels:  url
postcss-inline-base64
PostCSS plugin used to replace value inside of url function to base64
Stars: ✭ 23 (+64.29%)
Mutual labels:  url
rollup-lib-bundler
Simple lib bundler
Stars: ✭ 13 (-7.14%)
Mutual labels:  rollup

urley

A cross-platform library with a collection of handy utilites to work with URLs



npm

NPM


πŸ” Try out the interactive Demo on codesandbox

⚑️About

Urley, A cross-platform utility library to work with URLs. Urely has a collection of handy helpers to use when working with URLs, with just a few imports you are set.

✨ Features

  • πŸ“¦ Light Weight ~885b (gzipped)
  • πŸ”§ Cross platform supported
  • πŸ™…β€β™‚οΈ Zero dependencies
  • βœ… Fully tested and reliable
  • βš’ CommonJS, ESM & browser standalone support

⬇ Installing urley

Using NPM

npm i urley

Using Yarn

yarn add urley

πŸ›  Usage

Getting familiar with the libary and you want to use some helper functions like getBaseUrl, getPathnameToObject, isAbsoluteUrl helpers e.t.c you can easily just import them the following ways.

import { isAbsolute } from 'urley';

All methods are exported as a flat namesapce so you can also call them like this

import isAbsolute from 'urley/bundle-es/isAbsolute';

or

var isAbsolute = require('urley');

and then we have the exported helpers and can already do this

isAbsolute('https://google.com');
// => true

πŸ“ Documentation View Here

Is Absolute

returns - Boolean

Is Browser

returns - Boolean

  • isBrowser - Determines if the current runtime environment is a browser. see file here

Is Valid URL

returns - Boolean

  • isValidUrl - Returns Boolean if the given string/URL is valid. see file here

Get Base URL

parameters - url (String)

returns - String

  • getBaseUrl - Returns the current URL without any parameters. see file here

Decode URL

parameters - str (String)

returns - String

  • decodeUrl - Function decodes a Uniform Resource Identifier (URI) component previously created by decodeURIComponent or by a similar routine. see file here

Encode URL

parameters - str (String)

returns - String

  • encodeUrl - Function encodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine. see file here

Get URL Parameters

parameters - url (String)

returns - Object

  • getUrlParameters - Returns an object containing the parameters of the current URL. see file here

Get Path Name

parameters - url (String)

returns - String

  • getPathname - Returns pathname with a regex exec function see file here

Path Name To Object

parameters - url (String)

returns - Object

  • pathnameToObject - Returns pathname into an object see file here

Join URL

parameters - urls (String)

returns - String

  • joinUrl - Join all given URL segments together, then normalizes the resulting URL see file here

Window Portion

parameters - url (String)

returns - string

  • getWindowPathname - Return pathname if parameter is passed or uses the one in the current window environment. see file here

  • getWindowHost - Return host if parameter is passed or uses the one in the current window environment. see file here

  • getWindowHostName - Return hostname if parameter is passed or uses the one in the current window environment. see file here

  • getWindowHash - Return hash if parameter is passed or uses the one in the current window environment. see file here

  • getWindowHref - Return href if parameter is passed or uses the one in the current window environment. see file here

  • getWindowPort - Return port if parameter is passed or uses the one in the current window environment. see file here

  • getWindowProtocol - Return protocol if parameter is passed or uses the one in the current window environment. see file here

  • getWindowSearch - Return search if parameter is passed or uses the one in the current window environment. see file here

MIT Β© codewonders.dev  Β·  GitHub @adenekan41 >  Β· 

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].