This commit is contained in:
16
node_modules/unist-util-generated/index.js
generated
vendored
Normal file
16
node_modules/unist-util-generated/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = generated
|
||||
|
||||
function generated(node) {
|
||||
return (
|
||||
!node ||
|
||||
!node.position ||
|
||||
!node.position.start ||
|
||||
!node.position.start.line ||
|
||||
!node.position.start.column ||
|
||||
!node.position.end ||
|
||||
!node.position.end.line ||
|
||||
!node.position.end.column
|
||||
)
|
||||
}
|
||||
22
node_modules/unist-util-generated/license
generated
vendored
Normal file
22
node_modules/unist-util-generated/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.
|
||||
73
node_modules/unist-util-generated/package.json
generated
vendored
Normal file
73
node_modules/unist-util-generated/package.json
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"name": "unist-util-generated",
|
||||
"version": "1.1.6",
|
||||
"description": "unist utility to check if a node is generated",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"unist",
|
||||
"unist-util",
|
||||
"util",
|
||||
"utility",
|
||||
"position",
|
||||
"location",
|
||||
"generated"
|
||||
],
|
||||
"repository": "syntax-tree/unist-util-generated",
|
||||
"bugs": "https://github.com/syntax-tree/unist-util-generated/issues",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
},
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
||||
],
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"devDependencies": {
|
||||
"browserify": "^17.0.0",
|
||||
"nyc": "^15.0.0",
|
||||
"prettier": "^2.0.0",
|
||||
"remark-cli": "^9.0.0",
|
||||
"remark-preset-wooorm": "^8.0.0",
|
||||
"tape": "^5.0.0",
|
||||
"tinyify": "^3.0.0",
|
||||
"xo": "^0.34.0"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
||||
"build-bundle": "browserify . -s unistUtilGenerated -o unist-util-generated.js",
|
||||
"build-mangle": "browserify . -s unistUtilGenerated -o unist-util-generated.min.js -p tinyify",
|
||||
"build": "npm run build-bundle && npm run build-mangle",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js",
|
||||
"test": "npm run format && npm run build && npm run test-coverage"
|
||||
},
|
||||
"nyc": {
|
||||
"check-coverage": true,
|
||||
"lines": 100,
|
||||
"functions": 100,
|
||||
"branches": 100
|
||||
},
|
||||
"prettier": {
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"bracketSpacing": false,
|
||||
"semi": false,
|
||||
"trailingComma": "none"
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true,
|
||||
"esnext": false,
|
||||
"ignores": [
|
||||
"unist-util-generated.js"
|
||||
]
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"preset-wooorm"
|
||||
]
|
||||
}
|
||||
}
|
||||
118
node_modules/unist-util-generated/readme.md
generated
vendored
Normal file
118
node_modules/unist-util-generated/readme.md
generated
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
# unist-util-generated
|
||||
|
||||
[![Build][build-badge]][build]
|
||||
[![Coverage][coverage-badge]][coverage]
|
||||
[![Downloads][downloads-badge]][downloads]
|
||||
[![Size][size-badge]][size]
|
||||
[![Sponsors][sponsors-badge]][collective]
|
||||
[![Backers][backers-badge]][collective]
|
||||
[![Chat][chat-badge]][chat]
|
||||
|
||||
[**unist**][unist] utility to check if a [node][] is [*generated*][generated].
|
||||
|
||||
## Install
|
||||
|
||||
[npm][]:
|
||||
|
||||
```sh
|
||||
npm install unist-util-generated
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
```js
|
||||
var generated = require('unist-util-generated')
|
||||
|
||||
generated({}) // => true
|
||||
|
||||
generated({position: {start: {}, end: {}}}) // => true
|
||||
|
||||
generated({
|
||||
position: {start: {line: 1, column: 1}, end: {line: 1, column: 2}}
|
||||
}) // => false
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `generated(node)`
|
||||
|
||||
Check if [`node`][node] is [*generated*][generated].
|
||||
|
||||
###### Parameters
|
||||
|
||||
* `node` ([`Node`][node]) — Node to check.
|
||||
|
||||
###### Returns
|
||||
|
||||
`boolean` — Whether `node` is generated.
|
||||
|
||||
## Related
|
||||
|
||||
* [`unist-util-position`](https://github.com/syntax-tree/unist-util-position)
|
||||
— Get the position of nodes
|
||||
* [`unist-util-source`](https://github.com/syntax-tree/unist-util-source)
|
||||
— Get the source of a node or position
|
||||
* [`unist-util-remove-position`](https://github.com/syntax-tree/unist-util-remove-position)
|
||||
— Remove `position`s from a tree
|
||||
* [`unist-util-stringify-position`](https://github.com/syntax-tree/unist-util-stringify-position)
|
||||
— Stringify a node, position, or point
|
||||
|
||||
## Contribute
|
||||
|
||||
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
|
||||
started.
|
||||
See [`support.md`][support] for ways to get help.
|
||||
|
||||
This project has a [code of conduct][coc].
|
||||
By interacting with this repository, organization, or community you agree to
|
||||
abide by its terms.
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definition -->
|
||||
|
||||
[build-badge]: https://img.shields.io/travis/syntax-tree/unist-util-generated.svg
|
||||
|
||||
[build]: https://travis-ci.org/syntax-tree/unist-util-generated
|
||||
|
||||
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-generated.svg
|
||||
|
||||
[coverage]: https://codecov.io/github/syntax-tree/unist-util-generated
|
||||
|
||||
[downloads-badge]: https://img.shields.io/npm/dm/unist-util-generated.svg
|
||||
|
||||
[downloads]: https://www.npmjs.com/package/unist-util-generated
|
||||
|
||||
[size-badge]: https://img.shields.io/bundlephobia/minzip/unist-util-generated.svg
|
||||
|
||||
[size]: https://bundlephobia.com/result?p=unist-util-generated
|
||||
|
||||
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
|
||||
|
||||
[backers-badge]: https://opencollective.com/unified/backers/badge.svg
|
||||
|
||||
[collective]: https://opencollective.com/unified
|
||||
|
||||
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
|
||||
|
||||
[chat]: https://github.com/syntax-tree/unist/discussions
|
||||
|
||||
[npm]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: license
|
||||
|
||||
[author]: https://wooorm.com
|
||||
|
||||
[contributing]: https://github.com/syntax-tree/.github/blob/HEAD/contributing.md
|
||||
|
||||
[support]: https://github.com/syntax-tree/.github/blob/HEAD/support.md
|
||||
|
||||
[coc]: https://github.com/syntax-tree/.github/blob/HEAD/code-of-conduct.md
|
||||
|
||||
[unist]: https://github.com/syntax-tree/unist
|
||||
|
||||
[node]: https://github.com/syntax-tree/unist#node
|
||||
|
||||
[generated]: https://github.com/syntax-tree/unist#generated
|
||||
Reference in New Issue
Block a user