is-word-character
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -8,4 +8,4 @@ 'use strict' | ||
/* Check if the given character code, or the character | ||
* code at the first character, is a word character. */ | ||
// Check if the given character code, or the character code at the first | ||
// character, is a word character. | ||
function wordCharacter(character) { | ||
@@ -12,0 +12,0 @@ return re.test( |
{ | ||
"name": "is-word-character", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Check if a character is a word character", | ||
@@ -15,5 +15,5 @@ "license": "MIT", | ||
"bugs": "https://github.com/wooorm/is-word-character/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" | ||
], | ||
@@ -26,14 +26,14 @@ "files": [ | ||
"browserify": "^16.0.0", | ||
"esmangle": "^1.0.1", | ||
"nyc": "^11.0.0", | ||
"nyc": "^14.0.0", | ||
"prettier": "^1.12.1", | ||
"remark-cli": "^5.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"tape": "^4.0.0", | ||
"xo": "^0.20.0" | ||
"tinyify": "^2.5.0", | ||
"xo": "^0.24.0" | ||
}, | ||
"scripts": { | ||
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix", | ||
"build-bundle": "browserify index.js --bare -s isWordCharacter > is-word-character.js", | ||
"build-mangle": "esmangle < is-word-character.js > is-word-character.min.js", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"build-bundle": "browserify . -s isWordCharacter -o is-word-character.js", | ||
"build-mangle": "browserify . -s isWordCharacter -p tinyify -o is-word-character.min.js", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
@@ -55,6 +55,2 @@ "test-api": "node test", | ||
"esnext": false, | ||
"rules": { | ||
"no-var": "off", | ||
"prefer-arrow-callback": "off" | ||
}, | ||
"ignores": [ | ||
@@ -61,0 +57,0 @@ "is-word-character.js" |
@@ -1,3 +0,8 @@ | ||
# is-word-character [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
# is-word-character | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
[![Size][size-badge]][size] | ||
Check if a character is a word character (`\w`, which equals | ||
@@ -48,14 +53,22 @@ `[a-zA-Z0-9_]`). | ||
[travis-badge]: https://img.shields.io/travis/wooorm/is-word-character.svg | ||
[build-badge]: https://img.shields.io/travis/wooorm/is-word-character.svg | ||
[travis]: https://travis-ci.org/wooorm/is-word-character | ||
[build]: https://travis-ci.org/wooorm/is-word-character | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/is-word-character.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-word-character.svg | ||
[codecov]: https://codecov.io/github/wooorm/is-word-character | ||
[coverage]: https://codecov.io/github/wooorm/is-word-character | ||
[downloads-badge]: https://img.shields.io/npm/dm/is-word-character.svg | ||
[downloads]: https://www.npmjs.com/package/is-word-character | ||
[size-badge]: https://img.shields.io/bundlephobia/minzip/is-word-character.svg | ||
[size]: https://bundlephobia.com/result?p=is-word-character | ||
[npm]: https://docs.npmjs.com/cli/install | ||
[license]: LICENSE | ||
[license]: license | ||
[author]: http://wooorm.com | ||
[author]: https://wooorm.com |
4996
74