Commit e5b0b23a authored by Mehmet Kozan's avatar Mehmet Kozan

some of files refactored.

parent f190304a
Pipeline #14791964 passed with stages
in 58 seconds
......@@ -56,4 +56,6 @@ typings/
# dotenv environment variables file
.env
# package lock file
/package-lock.json
image: node:8.9.1
#stages: build, test, and deploy.
stages:
- build
- test
- deploy
git_package_install:
package_install:
stage: build
only:
- master
- tag
script:
- pwd
- npm install --save --save-dev --save-exact
git_mocha_test:
stage: test
only:
- master
script:
- pwd
- npm install --save --save-dev --save-exact
- npm run test
npm_package_install:
stage: build
only:
- master
script:
- pwd
- cd ..
- pwd
- rm -rf npm_package_install
- mkdir npm_package_install
- cd npm_package_install
- npm install --prefix ./ crawler-url-parser
- cd node_modules
- cd crawler-url-parser
- npm install --save --save-dev --save-exact
npm_mocha_test:
mocha_test:
stage: test
only:
- master
- tag
script:
- pwd
- cd ..
- pwd
- rm -rf npm_package_install
- mkdir npm_package_install
- cd npm_package_install
- npm install --prefix ./ crawler-url-parser
- cd node_modules
- cd crawler-url-parser
- npm install --save --save-dev --save-exact
- npm run test
......
# crawler-url-parser
> **An URL parser for crawling purpose**
![avatar of crawler-url-parser](https://assets.gitlab-static.net/uploads/-/system/project/avatar/4809017/crawler-url-parser.png)
![logo](https://assets.gitlab-static.net/uploads/-/system/project/avatar/4809017/crawler-url-parser.png)
[![version](https://img.shields.io/npm/v/crawler-url-parser.svg)](https://www.npmjs.org/package/crawler-url-parser)
[![downloads Total](https://img.shields.io/npm/dt/crawler-url-parser.svg?style=flat)](https://www.npmjs.org/package/crawler-url-parser)
[![downloads](https://img.shields.io/npm/dt/crawler-url-parser.svg)](https://www.npmjs.org/package/crawler-url-parser)
[![node](https://img.shields.io/node/v/crawler-url-parser.svg)](https://nodejs.org/)
[![dependencies](https://david-dm.org/mehmet.kozan/crawler-url-parser.svg)](https://david-dm.org/mehmet.kozan/crawler-url-parser)
[![devDependencies](https://david-dm.org/mehmet.kozan/crawler-url-parser/dev-status.svg)](https://david-dm.org/mehmet.kozan/crawler-url-parser#info=devDependencies)
![node](https://img.shields.io/node/v/crawler-url-parser.svg)
[![status](https://gitlab.com/mehmet.kozan/crawler-url-parser/badges/master/pipeline.svg)](https://gitlab.com/mehmet.kozan/crawler-url-parser/commits/master)
[![coverage](https://gitlab.com/mehmet.kozan/crawler-url-parser/badges/master/coverage.svg)](https://gitlab.com/mehmet.kozan/crawler-url-parser/commits/master)
## Installation
`npm install crawler-url-parser`
......
This diff is collapsed.
{
"name": "crawler-url-parser",
"version": "1.2.7",
"version": "1.2.9",
"description": "An `URL` parser for crawling purpose.",
"main": "crawler-url-parser.js",
"keywords": [
......@@ -39,15 +39,11 @@
"devDependencies": {
"fs": "*",
"mocha": "*",
"path": "*",
"nyc": "*",
"my-badges":"*"
"path": "*"
},
"scripts": {
"start": "node crawler-url-parser.js",
"test": "mocha --recursive",
"coverage": "nyc mocha",
"badges": "mybadges --major"
"test": "mocha --recursive"
},
"bugs": {
"url": "https://gitlab.com/mehmet.kozan/crawler-url-parser/issues",
......@@ -61,6 +57,6 @@
"author": "Mehmet Kozan <[email protected]>",
"license": "MIT",
"engines": {
"node": ">=0.6"
"node": ">= 4.0.0"
}
}
//const cup = require('crawler-url-parser');
const cup = require('./');
let url = cup.parse("../ddd","http://question.stackoverflow.com/aaa/bbb/ccc/");
console.log(url.normalized);
console.log(url.host);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment