From e1c30e14b4ed9227f3a7231a3f15174f362e816e Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Mon, 26 Mar 2018 09:26:36 -0700 Subject: [PATCH 1/2] remove cruft and fix the test script --- Makefile | 18 ------------------ Readme.md | 15 ++++++--------- component.json | 19 ------------------- package.json | 3 ++- 4 files changed, 8 insertions(+), 47 deletions(-) delete mode 100644 Makefile delete mode 100644 component.json diff --git a/Makefile b/Makefile deleted file mode 100644 index 8822506..0000000 --- a/Makefile +++ /dev/null @@ -1,18 +0,0 @@ - -build: components index.js - @component build --dev - -clean: - @rm -fr build components node_modules - -components: component.json - @component install --dev - -node_modules: package.json - @npm install - -test: node_modules build - @./node_modules/.bin/mocha --reporter spec - @component test phantom - -.PHONY: clean test diff --git a/Readme.md b/Readme.md index f29dc2a..20ed181 100644 --- a/Readme.md +++ b/Readme.md @@ -1,22 +1,19 @@ # is-url - Check whether a string is a URL. +Check whether a string is a URL. ## Installation -``` -$ component install segmentio/is-url -``` -``` -$ npm install is-url +```sh +npm install is-url ``` ## API -### isUrl(string) +### `isUrl(string)` - Checks whether `string` is a URL. +Returns a Boolean indicating whether `string` is a URL. ## License - MIT +MIT diff --git a/component.json b/component.json deleted file mode 100644 index e7ecf76..0000000 --- a/component.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "is-url", - "repo": "segmentio/is-url", - "version": "1.2.0", - "license": "MIT", - "description": "Check whether a string is a URL.", - "keywords": [ - "url", - "regexp", - "regex", - "validate" - ], - "scripts": [ - "index.js" - ], - "development": { - "component/assert": "*" - } -} \ No newline at end of file diff --git a/package.json b/package.json index a0ff217..87541b7 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "name": "is-url", + "description": "Check whether a string is a URL.", "repository": "https://github.com/segmentio/is-url", "version": "1.2.3", "scripts": { - "test": "make test" + "test": "mocha --reporter spec" }, "license": "MIT", "devDependencies": { From e572e5d1b924c6b45e2332c6ec9e1e3c7d7c72a8 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Mon, 26 Mar 2018 09:26:41 -0700 Subject: [PATCH 2/2] add travis config --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1a8f06b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 8 \ No newline at end of file