mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 05:52:02 +02:00
Initial commit
This commit is contained in:
11
node_modules/pug-parser/HISTORY.md
generated
vendored
Normal file
11
node_modules/pug-parser/HISTORY.md
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
2.0.1 / 2016-06-01
|
||||
==================
|
||||
|
||||
* Add a brief API introduction to README
|
||||
|
||||
2.0.0 / 2016-05-14
|
||||
==================
|
||||
|
||||
* Take the `filename` as an option rather than special casing it. This means that parse only takes 2 arguments rather than 3
|
||||
* Add type checking on arguments
|
||||
* Treat the legacy `.jade` extension as `.pug` rather than a raw include
|
19
node_modules/pug-parser/LICENSE
generated
vendored
Normal file
19
node_modules/pug-parser/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2014 Forbes Lindesay
|
||||
|
||||
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.
|
90
node_modules/pug-parser/README.md
generated
vendored
Normal file
90
node_modules/pug-parser/README.md
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# pug-parser
|
||||
|
||||
The pug parser (takes an array of tokens and converts it to an abstract syntax tree)
|
||||
|
||||
[](https://travis-ci.org/pugjs/pug-parser)
|
||||
[](https://david-dm.org/pugjs/pug?path=packages/pug-parser)
|
||||
[](https://david-dm.org/pugjs/pug?path=packages/pug-parser&type=dev)
|
||||
[](https://www.npmjs.org/package/pug-parser)
|
||||
|
||||
## Installation
|
||||
|
||||
npm install pug-parser
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var parse = require('pug-parser');
|
||||
```
|
||||
|
||||
### `parse(tokens, options)`
|
||||
|
||||
Convert Pug tokens to an abstract syntax tree (AST).
|
||||
|
||||
`options` can contain the following properties:
|
||||
|
||||
- `filename` (string): The name of the Pug file; it is included in the produced AST nodes and error handling, if provided.
|
||||
- `plugins` (array): An array of plugins, in the order they should be applied.
|
||||
- `src` (string): The source of the Pug file; it is used in error handling if provided.
|
||||
|
||||
```js
|
||||
var lex = require('pug-lexer');
|
||||
|
||||
var filename = 'my-file.pug';
|
||||
var src = 'div(data-foo="bar")';
|
||||
var tokens = lex(src, {filename});
|
||||
|
||||
var ast = parse(tokens, {filename, src});
|
||||
|
||||
console.log(JSON.stringify(ast, null, ' '))
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "div",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [],
|
||||
"line": 1,
|
||||
"filename": "my-file.pug"
|
||||
},
|
||||
"attrs": [
|
||||
{
|
||||
"name": "data-foo",
|
||||
"val": "\"bar\"",
|
||||
"line": 1,
|
||||
"column": 5,
|
||||
"filename": "my-file.pug",
|
||||
"mustEscape": true
|
||||
}
|
||||
],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"filename": "my-file.pug"
|
||||
}
|
||||
],
|
||||
"line": 0,
|
||||
"filename": "my-file.pug"
|
||||
}
|
||||
```
|
||||
|
||||
### `new parse.Parser(tokens, options)`
|
||||
|
||||
Constructor for a Parser class. This is not meant to be used directly unless you know what you are doing.
|
||||
|
||||
`options` may contain the following properties:
|
||||
|
||||
- `filename` (string): The name of the Pug file; it is included in the produced AST nodes and error handling, if provided.
|
||||
- `plugins` (array): An array of plugins, in the order they should be applied.
|
||||
- `src` (string): The source of the Pug file; it is used in error handling if provided.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
1192
node_modules/pug-parser/index.js
generated
vendored
Normal file
1192
node_modules/pug-parser/index.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
23
node_modules/pug-parser/lib/inline-tags.js
generated
vendored
Normal file
23
node_modules/pug-parser/lib/inline-tags.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = [
|
||||
'a'
|
||||
, 'abbr'
|
||||
, 'acronym'
|
||||
, 'b'
|
||||
, 'br'
|
||||
, 'code'
|
||||
, 'em'
|
||||
, 'font'
|
||||
, 'i'
|
||||
, 'img'
|
||||
, 'ins'
|
||||
, 'kbd'
|
||||
, 'map'
|
||||
, 'samp'
|
||||
, 'small'
|
||||
, 'span'
|
||||
, 'strong'
|
||||
, 'sub'
|
||||
, 'sup'
|
||||
];
|
53
node_modules/pug-parser/package.json
generated
vendored
Normal file
53
node_modules/pug-parser/package.json
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"_from": "pug-parser@^5.0.1",
|
||||
"_id": "pug-parser@5.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-nGHqK+w07p5/PsPIyzkTQfzlYfuqoiGjaoqHv1LjOv2ZLXmGX1O+4Vcvps+P4LhxZ3drYSljjq4b+Naid126wA==",
|
||||
"_location": "/pug-parser",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "pug-parser@^5.0.1",
|
||||
"name": "pug-parser",
|
||||
"escapedName": "pug-parser",
|
||||
"rawSpec": "^5.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^5.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/pug"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/pug-parser/-/pug-parser-5.0.1.tgz",
|
||||
"_shasum": "03e7ada48b6840bd3822f867d7d90f842d0ffdc9",
|
||||
"_spec": "pug-parser@^5.0.1",
|
||||
"_where": "/home/runner/Socketio-Chat-Template/node_modules/pug",
|
||||
"author": {
|
||||
"name": "ForbesLindesay"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"pug-error": "^1.3.3",
|
||||
"token-stream": "0.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "The pug parser (takes an array of tokens and converts it to an abstract syntax tree)",
|
||||
"devDependencies": {
|
||||
"get-repo": "^1.0.0"
|
||||
},
|
||||
"files": [
|
||||
"lib/inline-tags.js",
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "1bdf628a70fda7a0d840c52f3abce54b1c6b0130",
|
||||
"keywords": [
|
||||
"pug"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "pug-parser",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pugjs/pug/tree/master/packages/pug-parser"
|
||||
},
|
||||
"version": "5.0.1"
|
||||
}
|
Reference in New Issue
Block a user