🎉 initiate project *astro_rewrite*

This commit is contained in:
sindrekjelsrud 2023-07-19 21:31:30 +02:00
parent ffd4d5e86c
commit 2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions

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

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

11
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'))

1
node_modules/load-yaml-file/node_modules/.bin/js-yaml generated vendored Symbolic link
View file

@ -0,0 +1 @@
../../../js-yaml/bin/js-yaml.js

View file

@ -0,0 +1,14 @@
'use strict';
module.exports = x => {
if (typeof x !== 'string') {
throw new TypeError('Expected a string, got ' + typeof x);
}
// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
// conversion translates it to FEFF (UTF-16 BOM)
if (x.charCodeAt(0) === 0xFEFF) {
return x.slice(1);
}
return x;
};

View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.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.

View file

@ -0,0 +1,40 @@
{
"name": "strip-bom",
"version": "3.0.0",
"description": "Strip UTF-8 byte order mark (BOM) from a string",
"license": "MIT",
"repository": "sindresorhus/strip-bom",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"strip",
"bom",
"byte",
"order",
"mark",
"unicode",
"utf8",
"utf-8",
"remove",
"delete",
"trim",
"text",
"string"
],
"devDependencies": {
"ava": "*",
"xo": "*"
}
}

View file

@ -0,0 +1,36 @@
# strip-bom [![Build Status](https://travis-ci.org/sindresorhus/strip-bom.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-bom)
> Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a string
From Wikipedia:
> The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8.
## Install
```
$ npm install --save strip-bom
```
## Usage
```js
const stripBom = require('strip-bom');
stripBom('\uFEFFunicorn');
//=> 'unicorn'
```
## Related
- [strip-bom-cli](https://github.com/sindresorhus/strip-bom-cli) - CLI for this module
- [strip-bom-buf](https://github.com/sindresorhus/strip-bom-buf) - Buffer version of this module
- [strip-bom-stream](https://github.com/sindresorhus/strip-bom-stream) - Stream version of this module
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)

22
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
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
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 })
})
})