@jswork/next-url2fullpath

1.0.1 • Public • Published

next-url2fullpath

Get url full pathname + others.

version license size download

installation

npm install -S @jswork/next-url2fullpath

usage

import '@jswork/next-url2fullpath';

const url1 = 'https://github.com/afeiship/next-url2fullpath';
const url2 = 'https://confluence.demo.cn/pages/viewpage.action?pageId=25196240';
const url3 = 'https://owlcarousel2.github.io/OwlCarousel2/demos/urlhashnav.html#seven';

nx.url2fullpath(url1) // '/afeiship/next-url2fullpath'
nx.url2fullpath(url2) // '/pages/viewpage.action?pageId=25196240'
nx.url2fullpath(url3) // '/OwlCarousel2/demos/urlhashnav.html#seven'

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-url2fullpath

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

4.92 kB

Total Files

5

Last publish

Collaborators

  • afeiship