node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

1
server/node_modules/load-yaml-file/foo.yml generated vendored Normal file
View File

@@ -0,0 +1 @@
foo: true

11
server/node_modules/load-yaml-file/index.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
'use strict'
const fs = require('graceful-fs')
const pify = require('pify')
const stripBom = require('strip-bom')
const yaml = require('js-yaml')
const parse = data => yaml.safeLoad(stripBom(data))
module.exports = fp => pify(fs.readFile)(fp, 'utf8').then(data => parse(data))
module.exports.sync = fp => parse(fs.readFileSync(fp, 'utf8'))

22
server/node_modules/load-yaml-file/package.json generated vendored Normal file
View File

@@ -0,0 +1,22 @@
{
"name": "load-yaml-file",
"version": "0.2.0",
"license": "MIT",
"repository": "LinusU/load-yaml-file",
"engines": {
"node": ">=6"
},
"scripts": {
"test": "standard && mocha"
},
"dependencies": {
"graceful-fs": "^4.1.5",
"js-yaml": "^3.13.0",
"pify": "^4.0.1",
"strip-bom": "^3.0.0"
},
"devDependencies": {
"mocha": "^6.0.2",
"standard": "^12.0.1"
}
}

35
server/node_modules/load-yaml-file/readme.md generated vendored Normal file
View File

@@ -0,0 +1,35 @@
# Load YAML file
Read and parse a YAML file.
## Installation
```sh
npm install --save load-yaml-file
```
## Usage
```js
const loadYamlFile = require('load-yaml-file')
loadYamlFile('foo.yml').then(data => {
console.log(data)
//=> {foo: true}
})
```
## API
### loadYamlFile(filepath)
Returns a promise for the parsed YAML.
### loadYamlFile.sync(filepath)
Returns the parsed YAML.
## Related
- [write-yaml-file](https://github.com/zkochan/write-yaml-file) - Stringify and write YAML to a file atomically
- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file

17
server/node_modules/load-yaml-file/test.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
/* eslint-env mocha */
const assert = require('assert')
const loadYamlFile = require('./')
describe('load-yaml-file', () => {
it('loadYamlFile()', () => {
return loadYamlFile('foo.yml').then(data => {
assert.deepStrictEqual(data, { foo: true })
})
})
it('loadYamlFile.sync()', () => {
const data = loadYamlFile.sync('foo.yml')
assert.deepStrictEqual(data, { foo: true })
})
})