Skip to content

Commit 26f9105

Browse files
author
tunnckoCore
committed
update stuff, add related libs
1 parent ab9cabd commit 26f9105

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ charset = utf-8
1111
end_of_line = lf
1212
indent_size = 2
1313
indent_style = space
14+
15+
[*.js]
1416
insert_final_newline = true
1517
trim_trailing_whitespace = true
1618

1719
[*.php]
1820
indent_size = 4
21+
insert_final_newline = true
22+
trim_trailing_whitespace = true
1923

2024
[*.md]
2125
insert_final_newline = false

.travis.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,8 @@ node_js:
55
- "0.8"
66
- "0.10"
77
- "0.12"
8-
- "1.0"
9-
- "1.8"
10-
- "2.0"
11-
- "2.1"
12-
13-
matrix:
14-
allow_failures:
15-
- node_js: "0.8"
8+
- "1"
9+
- "2"
1610

1711
notifications:
1812
email:
@@ -24,9 +18,14 @@ before_script:
2418
- standard
2519

2620
script:
27-
- npm install istanbul
28-
- istanbul cover test.js
21+
- npm install istanbul-harmony
22+
- node --harmony node_modules/.bin/istanbul cover test.js
2923

3024
after_success:
3125
- npm install coveralls
3226
- cat ./coverage/lcov.info | coveralls
27+
28+
matrix:
29+
allow_failures:
30+
- node_js: "0.8"
31+
- node_js: "0.10"

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# hex-color-regex [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url]
1+
# [hex-color-regex][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url]
22

33
> The best regular expression (regex) for matching hex color values from string.
44
@@ -19,6 +19,7 @@ npm test
1919
- `return` **{RegExp}**
2020

2121
**Example**
22+
2223
```js
2324
var hexColorRegex = require('hex-color-regex')
2425

@@ -82,6 +83,7 @@ hexColorRegex().test('#fff') //=> true
8283
- `match[1]` hex value without the hash - `f3f3f3`
8384

8485
**Example**
86+
8587
```js
8688
hexColorRegex().exec('foo #fff bar')
8789
//=> [ '#fff', 'fff', index: 4, input: 'foo #fff bar' ]
@@ -97,8 +99,20 @@ hexColorRegex({strict: true}).exec('foo #f3f3f3 bar')
9799
```
98100

99101

100-
## Contributing
102+
## Related
103+
- [benz](https://github.com/tunnckocore/benz): Compose your control flow with absolute elegance. Support async/await, callbacks, thunks, generators, promises, observables, child… [more](https://github.com/tunnckocore/benz)
104+
- [is-hexcolor](https://github.com/tunnckocore/is-hexcolor): Check that given value is valid hex color, using `hex-color-regex` - the best regex for… [more](https://github.com/tunnckocore/is-hexcolor)
105+
- [is-ansi](https://github.com/tunnckocore/is-ansi): Check that given string contain ANSI color codes, without CLI
106+
- [is-missing](https://github.com/tunnckocore/is-missing): Check that given `name` or `user/repo` exists in npm registry or in github as user… [more](https://github.com/tunnckocore/is-missing)
107+
- [is-kindof](https://github.com/tunnckocore/is-kindof): Check type of given javascript value. Support promises, generators, streams, and native types. Thin wrapper… [more](https://github.com/tunnckocore/is-kindof)
108+
- [is-typeof-error](https://github.com/tunnckocore/is-typeof-error): Check that given value is any type of error and instanceof Error
109+
- [is-async-function](https://github.com/tunnckocore/is-async-function): Check that given function is async (callback) function or not. Trying to guess that based… [more](https://github.com/tunnckocore/is-async-function)
110+
- [kind-error](https://github.com/tunnckocore/kind-error): Correct inheriting from `Error`. Supports constructing from an object of properties - focused on assertion.
111+
- [kind-of-extra](https://github.com/tunnckocore/kind-of-extra): Extends `kind-of` type check utility with support for promises, generators, streams and errors. Like `kindof(Promise.resolve(1))… [more](https://github.com/tunnckocore/kind-of-extra)
112+
- [vez](https://github.com/tunnckocore/vez): Middleware composition at new level. Ultimate alternative to `ware`, `plugins`, `koa-compose` and `composition` packages. Allows… [more](https://github.com/tunnckocore/vez)
101113

114+
115+
## Contributing
102116
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/regexps/hex-color-regex/issues/new).
103117
But before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.
104118

0 commit comments

Comments
 (0)