- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
48 lines
745 B
Markdown
48 lines
745 B
Markdown
Join all arguments together and normalize the resulting url.
|
|
|
|
## Install
|
|
|
|
~~~
|
|
npm install url-join
|
|
~~~
|
|
|
|
## Usage
|
|
|
|
~~~javascript
|
|
var urljoin = require('url-join');
|
|
|
|
var fullUrl = urljoin('http://www.google.com', 'a', '/b/cd', '?foo=123');
|
|
|
|
console.log(fullUrl);
|
|
|
|
~~~
|
|
|
|
Prints:
|
|
|
|
~~~
|
|
'http://www.google.com/a/b/cd?foo=123'
|
|
~~~
|
|
|
|
## Browser and AMD
|
|
|
|
It also works in the browser, you can either include ```lib/url-join.js``` in your page:
|
|
|
|
~~~html
|
|
<script src="url-join.js"></script>
|
|
<script type="text/javascript">
|
|
urljoin('http://blabla.com', 'foo?a=1')
|
|
</script>
|
|
~~~
|
|
|
|
Or using an AMD module system like requirejs:
|
|
|
|
~~~javascript
|
|
define(['path/url-join.js'], function (urljoin) {
|
|
urljoin('http://blabla.com', 'foo?a=1');
|
|
});
|
|
~~~
|
|
|
|
## License
|
|
|
|
MIT
|