WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 deletions

25
node_modules/html-void-elements/index.json generated vendored Normal file
View File

@ -0,0 +1,25 @@
[
"area",
"base",
"basefont",
"bgsound",
"br",
"col",
"command",
"embed",
"frame",
"hr",
"image",
"img",
"input",
"isindex",
"keygen",
"link",
"menuitem",
"meta",
"nextid",
"param",
"source",
"track",
"wbr"
]

22
node_modules/html-void-elements/license generated vendored Normal file
View 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.

112
node_modules/html-void-elements/package.json generated vendored Normal file
View File

@ -0,0 +1,112 @@
{
"_from": "html-void-elements@^1.0.1",
"_id": "html-void-elements@1.0.4",
"_inBundle": false,
"_integrity": "sha512-yMk3naGPLrfvUV9TdDbuYXngh/TpHbA6TrOw3HL9kS8yhwx7i309BReNg7CbAJXGE+UMJ6je5OqJ7lC63o6YuQ==",
"_location": "/html-void-elements",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "html-void-elements@^1.0.1",
"name": "html-void-elements",
"escapedName": "html-void-elements",
"rawSpec": "^1.0.1",
"saveSpec": null,
"fetchSpec": "^1.0.1"
},
"_requiredBy": [
"/hast-util-raw",
"/hast-util-to-html"
],
"_resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.4.tgz",
"_shasum": "95e8bb5ecd6b88766569c2645f2b5f1591db9ba5",
"_spec": "html-void-elements@^1.0.1",
"_where": "/Users/stefanfejes/Projects/30-seconds-of-python-code/node_modules/hast-util-raw",
"author": {
"name": "Titus Wormer",
"email": "tituswormer@gmail.com",
"url": "https://wooorm.com"
},
"bugs": {
"url": "https://github.com/wooorm/html-void-elements/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Titus Wormer",
"email": "tituswormer@gmail.com",
"url": "https://wooorm.com"
}
],
"dependencies": {},
"deprecated": false,
"description": "List of known void HTML elements",
"devDependencies": {
"bail": "^1.0.0",
"browserify": "^16.0.0",
"concat-stream": "^2.0.0",
"hast-util-select": "^3.0.0",
"hast-util-to-string": "^1.0.0",
"prettier": "^1.12.0",
"rehype-parse": "^6.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.0.0",
"tinyify": "^2.5.0",
"unified": "^7.0.0",
"xo": "^0.24.0"
},
"files": [
"index.json"
],
"homepage": "https://github.com/wooorm/html-void-elements#readme",
"keywords": [
"html",
"void",
"tag",
"name",
"element",
"tagname",
"w3c",
"whatwg"
],
"license": "MIT",
"main": "index.json",
"name": "html-void-elements",
"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/html-void-elements.git"
},
"scripts": {
"build": "npm run build-bundle && npm run build-mangle",
"build-bundle": "browserify . -s htmlVoidElements > html-void-elements.js",
"build-mangle": "browserify . -s htmlVoidElements -p tinyify > html-void-elements.min.js",
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
"generate": "node build",
"lint": "xo",
"test": "npm run generate && npm run format && npm run build && npm run test-api",
"test-api": "node test.js"
},
"version": "1.0.4",
"xo": {
"prettier": true,
"esnext": false,
"ignores": [
"html-void-elements.min.js"
]
}
}

86
node_modules/html-void-elements/readme.md generated vendored Normal file
View File

@ -0,0 +1,86 @@
# html-void-elements
[![Build][build-badge]][build]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
List of known void HTML elements. Includes ancient (for example,
`nextid` and `basefont`) and modern (for example, `img` and
`meta`) tag-names from both W3C and WHATWG.
**Note**: theres one special case: `menuitem`. W3C specifies it to be
void, but WHATWG doesnt. I suggest using the void form.
## Installation
[npm][]:
```bash
npm install html-void-elements
```
## Usage
```javascript
var htmlVoidElements = require('html-void-elements')
console.log(htmlVoidElements)
```
Yields:
```js
[ 'area',
'base',
'basefont',
'bgsound',
'br',
'col',
'command',
'embed',
'frame',
'hr',
'image',
'img',
'input',
'isindex',
'keygen',
'link',
'menuitem',
'meta',
'nextid',
'param',
'source',
'track',
'wbr' ]
```
## API
### `htmlVoidElements`
`Array.<string>` — List of lower-case tag-names.
## License
[MIT][license] © [Titus Wormer][author]
<!-- Definition -->
[build-badge]: https://img.shields.io/travis/wooorm/html-void-elements.svg
[build]: https://travis-ci.org/wooorm/html-void-elements
[downloads-badge]: https://img.shields.io/npm/dm/html-void-elements.svg
[downloads]: https://www.npmjs.com/package/html-void-elements
[size-badge]: https://img.shields.io/bundlephobia/minzip/html-void-elements.svg
[size]: https://bundlephobia.com/result?p=html-void-elements
[npm]: https://docs.npmjs.com/cli/install
[license]: license
[author]: https://wooorm.com