WIP - add extractor, generate snippet_data
This commit is contained in:
11
node_modules/is-decimal/index.js
generated
vendored
Normal file
11
node_modules/is-decimal/index.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = decimal
|
||||
|
||||
// Check if the given character code, or the character code at the first
|
||||
// character, is decimal.
|
||||
function decimal(character) {
|
||||
var code = typeof character === 'string' ? character.charCodeAt(0) : character
|
||||
|
||||
return code >= 48 && code <= 57 /* 0-9 */
|
||||
}
|
||||
22
node_modules/is-decimal/license
generated
vendored
Normal file
22
node_modules/is-decimal/license
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
111
node_modules/is-decimal/package.json
generated
vendored
Normal file
111
node_modules/is-decimal/package.json
generated
vendored
Normal file
@ -0,0 +1,111 @@
|
||||
{
|
||||
"_from": "is-decimal@^1.0.0",
|
||||
"_id": "is-decimal@1.0.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-bvLSwoDg2q6Gf+E2LEPiklHZxxiSi3XAh4Mav65mKqTfCO1HM3uBs24TjEH8iJX3bbDdLXKJXBTmGzuTUuAEjQ==",
|
||||
"_location": "/is-decimal",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-decimal@^1.0.0",
|
||||
"name": "is-decimal",
|
||||
"escapedName": "is-decimal",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/is-alphanumerical",
|
||||
"/parse-entities",
|
||||
"/remark-parse",
|
||||
"/remark-stringify",
|
||||
"/remark/remark-stringify"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.3.tgz",
|
||||
"_shasum": "381068759b9dc807d8c0dc0bfbae2b68e1da48b7",
|
||||
"_spec": "is-decimal@^1.0.0",
|
||||
"_where": "/Users/stefanfejes/Projects/30-seconds-of-python-code/node_modules/is-alphanumerical",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "https://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/is-decimal/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "https://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Check if a character is decimal",
|
||||
"devDependencies": {
|
||||
"browserify": "^16.0.0",
|
||||
"nyc": "^14.0.0",
|
||||
"prettier": "^1.12.1",
|
||||
"remark-cli": "^6.0.0",
|
||||
"remark-preset-wooorm": "^4.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"tinyify": "^2.5.0",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/wooorm/is-decimal#readme",
|
||||
"keywords": [
|
||||
"string",
|
||||
"character",
|
||||
"char",
|
||||
"code",
|
||||
"decimal"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-decimal",
|
||||
"nyc": {
|
||||
"check-coverage": true,
|
||||
"lines": 100,
|
||||
"functions": 100,
|
||||
"branches": 100
|
||||
},
|
||||
"prettier": {
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"bracketSpacing": false,
|
||||
"semi": false,
|
||||
"trailingComma": "none"
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"preset-wooorm"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/is-decimal.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify . -s isDecimal -o is-decimal.js",
|
||||
"build-mangle": "browserify . -s isDecimal -p tinyifgy -o is-decimal.min.js",
|
||||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
|
||||
"test": "npm run format && npm run build && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.0.3",
|
||||
"xo": {
|
||||
"prettier": true,
|
||||
"esnext": false,
|
||||
"ignores": [
|
||||
"is-decimal.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
69
node_modules/is-decimal/readme.md
generated
vendored
Normal file
69
node_modules/is-decimal/readme.md
generated
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
# is-decimal
|
||||
|
||||
[![Build][build-badge]][build]
|
||||
[![Coverage][coverage-badge]][coverage]
|
||||
[![Downloads][downloads-badge]][downloads]
|
||||
[![Size][size-badge]][size]
|
||||
|
||||
Check if a character is decimal.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][]:
|
||||
|
||||
```bash
|
||||
npm install is-decimal
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
var decimal = require('is-decimal')
|
||||
|
||||
decimal('0') // => true
|
||||
decimal('9') // => true
|
||||
decimal('a') // => false
|
||||
decimal('💩') // => false
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `decimal(character|code)`
|
||||
|
||||
Check whether the given character code (`number`), or the character
|
||||
code at the first position (`string`), is decimal.
|
||||
|
||||
## Related
|
||||
|
||||
* [`is-alphabetical`](https://github.com/wooorm/is-alphabetical)
|
||||
* [`is-hexadecimal`](https://github.com/wooorm/is-hexadecimal)
|
||||
* [`is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)
|
||||
* [`is-word-character`](https://github.com/wooorm/is-word-character)
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[build-badge]: https://img.shields.io/travis/wooorm/is-decimal.svg
|
||||
|
||||
[build]: https://travis-ci.org/wooorm/is-decimal
|
||||
|
||||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-decimal.svg
|
||||
|
||||
[coverage]: https://codecov.io/github/wooorm/is-decimal
|
||||
|
||||
[downloads-badge]: https://img.shields.io/npm/dm/is-decimal.svg
|
||||
|
||||
[downloads]: https://www.npmjs.com/package/is-decimal
|
||||
|
||||
[size-badge]: https://img.shields.io/bundlephobia/minzip/is-decimal.svg
|
||||
|
||||
[size]: https://bundlephobia.com/result?p=is-decimal
|
||||
|
||||
[npm]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: license
|
||||
|
||||
[author]: https://wooorm.com
|
||||
Reference in New Issue
Block a user