{"name":"is-word-character","version":"1.0.4","description":"Check if a character is a word character","license":"MIT","keywords":["string","character","char","code","word"],"repository":{"type":"git","url":"git+https://github.com/wooorm/is-word-character.git"},"bugs":{"url":"https://github.com/wooorm/is-word-character/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","xo":"^0.25.0"},"scripts":{"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","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["is-word-character.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"c69ac2f7221ff5b515fd1f61424738dd6dcb96f2","homepage":"https://github.com/wooorm/is-word-character#readme","_id":"is-word-character@1.0.4","_nodeVersion":"13.0.1","_npmVersion":"6.13.6","dist":{"integrity":"sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==","shasum":"ce0e73216f98599060592f62ff31354ddbeb0230","tarball":"http://registry-npm.ywwl.com/is-word-character/download/is-word-character-1.0.4.tgz","fileCount":4,"unpackedSize":5068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeLB8ECRA9TVsSAnZWagAAmSUQAIQD/pBxGCK/oRGB3F0c\neyE9OrkXlVy6oYPFRFTpx8QfeDt1P1tULJ+oq2EOT8QesJVmuqp++2iAHm/n\nNRtHN79iia+j3BtM9rQFzDzUuVaILyukC8+Rgt+jmPSjn6igiCgH8kTrlleZ\nhdVZco/viLlsjkdBjznRAkROTUQs0YFZ+U9XJ84kTzyyLJHKDkpbGIGx52oE\noAgQYrP8uH2DT5N9ymzevAhLvuxLJcv7jeET+sun6TNNbd65lcLvcFEucoSY\niQY9YSNDd7HCFPDumn9oVUiJHgD5v5uTahwvubSIFGRwu2bWsUIqaeQEASyu\nUhJJN6qtb+ESWZpCh2cyELdCG1DLz8amFTqEgyq27+fA5occnXkQ3HzNz6wJ\n/oM1rYvOqkxmbYqB2V1Bjpvc1XxJCENdzJ33dZZ7fMVEZr0cc7APwzuP+zaY\naXVPkQ34/9BVZUjCI9iOI4ZXrTXL5y+zPGBgrbFNq4L3/nrRxTaWHLMbL0Kc\nA3KJk/FYWrQxQvn9EvFJ8j4IYifR5TTSgAWvQ2749Ws70bm7Bp923/i61Wqa\n0give/vvljbi922QCGJt/gWpEH0yEZy9Yl2uhbDDEhBclljM9e1fIkXoaEHy\n+s10N8xjC7slb9aT6w2LoKsHmvtfLGHPC7zzGhGqRm7GE/xXuShJadnCs+Al\nxQG5\r\n=4YDD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxb5DoGWs/lE1BaMjFR65zvfmxhWTMm/UqbI/qyI5/2AIhAJ/ZCHpDMgY6DJcSqBwUtNwKsGgMlcXLwHH7CaUOKk5M"}],"size":2249,"noattachment":false,"key":"/is-word-character/-/is-word-character-1.0.4.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-word-character_1.0.4_1579949827834_0.13293591641001146"},"_hasShrinkwrap":false,"readme":"# is-word-character\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nCheck if a character is a word character.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`isWordCharacter(character|code)`](#iswordcharactercharactercode)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a function that checks if a given character is a word character:\nwhether it matches `\\w` (which is short for `[a-zA-Z0-9_]`).\n\n## When should I use this?\n\nNot often, as it’s relatively simple to do yourself.\nThis package exists because it’s needed in several related packages, at which\npoint it becomes useful to defer to one shared function.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:\n\n```sh\nnpm install is-word-character\n```\n\nIn Deno with [Skypack][]:\n\n```js\nimport {isWordCharacter} from 'https://cdn.skypack.dev/is-word-character@2?dts'\n```\n\nIn browsers with [Skypack][]:\n\n```html\n<script type=\"module\">\n  import {isWordCharacter} from 'https://cdn.skypack.dev/is-word-character@2?min'\n</script>\n```\n\n## Use\n\n```js\nimport {isWordCharacter} from 'is-word-character'\n\nisWordCharacter('a') // => true\nisWordCharacter('Z') // => true\nisWordCharacter('0') // => true\nisWordCharacter('_') // => true\nisWordCharacter(' ') // => false\nisWordCharacter('💩') // => false\n```\n\n## API\n\nThis package exports the following identifier: `isWordCharacter`.\nThere is no default export.\n\n### `isWordCharacter(character|code)`\n\nCheck whether the given character code (`number`), or the character code at the\nfirst position (`string`), is a word character.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 12.20+, 14.14+, and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/is-alphabetical`](https://github.com/wooorm/is-alphabetical)\n*   [`wooorm/is-alphanumerical`](https://github.com/wooorm/is-alphanumerical)\n*   [`wooorm/is-decimal`](https://github.com/wooorm/is-decimal)\n*   [`wooorm/is-hexadecimal`](https://github.com/wooorm/is-hexadecimal)\n*   [`wooorm/is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/is-word-character/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/is-word-character/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-word-character.svg\n\n[coverage]: https://codecov.io/github/wooorm/is-word-character\n\n[downloads-badge]: https://img.shields.io/npm/dm/is-word-character.svg\n\n[downloads]: https://www.npmjs.com/package/is-word-character\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/is-word-character.svg\n\n[size]: https://bundlephobia.com/result?p=is-word-character\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[skypack]: https://www.skypack.dev\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","publish_time":1579949828015,"_cnpm_publish_time":1579949828015,"dist-tags":{"latest":"2.0.1"}}