Socket
Socket
Sign inDemoInstall

is-hexadecimal

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

20

index.js

@@ -1,23 +0,7 @@

/**
* @author Titus Wormer
* @copyright 2016 Titus Wormer
* @license MIT
* @module is-hexadecimal
* @fileoverview Check if a character is hexadecimal.
*/
'use strict';
/* eslint-env commonjs */
/* Expose. */
module.exports = hexadecimal;
/**
* Check whether the given character code, or the character
* code at the first character, is hexadecimal.
*
* @param {string|number} character
* @return {boolean} - Whether `character` is hexadecimal.
*/
/* Check if the given character code, or the character
* code at the first character, is hexadecimal. */
function hexadecimal(character) {

@@ -24,0 +8,0 @@ var code = typeof character === 'string' ?

40

package.json
{
"name": "is-hexadecimal",
"version": "1.0.0",
"version": "1.0.1",
"description": "Check if a character is hexadecimal",

@@ -13,6 +13,3 @@ "license": "MIT",

],
"files": [
"index.js"
],
"repository": "https://github.com/wooorm/is-hexadecimal",
"repository": "wooorm/is-hexadecimal",
"bugs": "https://github.com/wooorm/is-hexadecimal/issues",

@@ -23,17 +20,17 @@ "author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",

],
"files": [
"index.js"
],
"dependencies": {},
"devDependencies": {
"browserify": "^13.0.1",
"browserify": "^14.1.0",
"esmangle": "^1.0.1",
"nyc": "^7.0.0",
"remark-cli": "^1.0.0",
"remark-comment-config": "^4.0.0",
"remark-github": "^5.0.0",
"remark-lint": "^4.0.0",
"remark-validate-links": "^4.0.0",
"nyc": "^11.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^3.0.0",
"tape": "^4.0.0",
"xo": "^0.16.0"
"xo": "^0.18.0"
},
"scripts": {
"build-md": "remark . --quiet --frail",
"build-md": "remark . -qfo",
"build-bundle": "browserify index.js --bare -s isHexadecimal > is-hexadecimal.js",

@@ -49,5 +46,5 @@ "build-mangle": "esmangle < is-hexadecimal.js > is-hexadecimal.min.js",

"space": true,
"esnext": false,
"ignores": [
"is-hexadecimal.js",
"is-hexadecimal.min.js"
"is-hexadecimal.js"
]

@@ -62,13 +59,6 @@ },

"remarkConfig": {
"output": true,
"plugins": [
"comment-config",
"github",
"lint",
"validate-links"
],
"settings": {
"bullet": "*"
}
"preset-wooorm"
]
}
}
# is-hexadecimal [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
<!--lint disable heading-increment list-item-spacing-->
Check if a character is hexadecimal.

@@ -9,3 +7,3 @@

[npm][npm-install]:
[npm][]:

@@ -18,11 +16,9 @@ ```bash

Dependencies:
```javascript
var hexadecimal = require('is-hexadecimal');
hexadecimal('a'); // true
hexadecimal('0'); // true
hexadecimal('G'); // false
hexadecimal('💩'); // false
hexadecimal('a'); //=> true
hexadecimal('0'); //=> true
hexadecimal('G'); //=> false
hexadecimal('💩'); //=> false
```

@@ -32,3 +28,3 @@

### `hexadecimal(character)`
### `hexadecimal(character|code)`

@@ -41,3 +37,6 @@ Check whether the given character code (`number`), or the character

* [`is-alphabetical`](https://github.com/wooorm/is-alphabetical)
* [`is-alphanumerical`](https://github.com/wooorm/is-alphabetical)
* [`is-decimal`](https://github.com/wooorm/is-decimal)
* [`is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)
* [`is-word-character`](https://github.com/wooorm/is-word-character)

@@ -58,3 +57,3 @@ ## License

[npm-install]: https://docs.npmjs.com/cli/install
[npm]: https://docs.npmjs.com/cli/install

@@ -61,0 +60,0 @@ [license]: LICENSE

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc