https://github.com/afeiship/next-url2fullpath
Get url full pathname + others.
https://github.com/afeiship/next-url2fullpath
fullpath next pathname url
Last synced: about 2 months ago
JSON representation
Get url full pathname + others.
- Host: GitHub
- URL: https://github.com/afeiship/next-url2fullpath
- Owner: afeiship
- License: mit
- Created: 2018-09-07T08:30:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-09T07:26:17.000Z (almost 5 years ago)
- Last Synced: 2025-03-10T03:54:14.670Z (over 1 year ago)
- Topics: fullpath, next, pathname, url
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-url2fullpath
> Get url full pathname + others.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-url2fullpath
```
## usage
```js
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](https://github.com/afeiship/next-url2fullpath/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-url2fullpath
[version-url]: https://npmjs.org/package/@jswork/next-url2fullpath
[license-image]: https://img.shields.io/npm/l/@jswork/next-url2fullpath
[license-url]: https://github.com/afeiship/next-url2fullpath/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-url2fullpath
[size-url]: https://github.com/afeiship/next-url2fullpath/blob/master/dist/next-url2fullpath.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-url2fullpath
[download-url]: https://www.npmjs.com/package/@jswork/next-url2fullpath