Socket
Socket
Sign inDemoInstall

is-alphabetical

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.1 to 1.0.2

13

index.js

@@ -1,4 +0,4 @@

'use strict';
'use strict'
module.exports = alphabetical;
module.exports = alphabetical

@@ -8,7 +8,8 @@ /* Check if the given character code, or the character

function alphabetical(character) {
var code = typeof character === 'string' ?
character.charCodeAt(0) : character;
var code = typeof character === 'string' ? character.charCodeAt(0) : character
return (code >= 97 && code <= 122) || /* a-z */
(code >= 65 && code <= 90); /* A-Z */
return (
(code >= 97 && code <= 122) /* a-z */ ||
(code >= 65 && code <= 90) /* A-Z */
)
}
{
"name": "is-alphabetical",
"version": "1.0.1",
"version": "1.0.2",
"description": "Check if a character is alphabetical",

@@ -24,24 +24,34 @@ "license": "MIT",

"devDependencies": {
"browserify": "^14.1.0",
"browserify": "^16.0.0",
"esmangle": "^1.0.1",
"nyc": "^11.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^3.0.0",
"prettier": "^1.12.1",
"remark-cli": "^5.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.0.0",
"xo": "^0.18.0"
"xo": "^0.20.0"
},
"scripts": {
"build-md": "remark . -qfo",
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
"build-bundle": "browserify index.js --bare -s isAlphabetical > is-alphabetical.js",
"build-mangle": "esmangle < is-alphabetical.js > is-alphabetical.min.js",
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
"lint": "xo",
"build": "npm run build-bundle && npm run build-mangle",
"test-api": "node test",
"test-coverage": "nyc --reporter lcov tape test.js",
"test": "npm run build && npm run lint && npm run test-coverage"
"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": {
"space": true,
"prettier": true,
"esnext": false,
"rules": {
"no-var": "off",
"prefer-arrow-callback": "off",
"capitalized-comments": "off"

@@ -48,0 +58,0 @@ },

@@ -16,8 +16,8 @@ # is-alphabetical [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]

```javascript
var alphabetical = require('is-alphabetical');
var alphabetical = require('is-alphabetical')
alphabetical('a'); // true
alphabetical('B'); // true
alphabetical('0'); // false
alphabetical('💩'); // false
alphabetical('a') // => true
alphabetical('B') // => true
alphabetical('0') // => false
alphabetical('💩') // => false
```

@@ -24,0 +24,0 @@

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