├── .gitattributes
├── .github
    ├── funding.yml
    └── workflows
    │   └── build.yml
├── .gitignore
├── .vscode
    ├── launch.json
    ├── settings.json
    └── tasks.json
├── Data
    ├── android
    │   ├── app
    │   │   ├── build.gradle
    │   │   ├── gitignore
    │   │   └── proguard-rules.pro
    │   ├── build.gradle
    │   ├── gitignore
    │   ├── gradle.properties
    │   ├── gradle
    │   │   └── wrapper
    │   │   │   ├── gradle-wrapper.jar
    │   │   │   └── gradle-wrapper.properties
    │   ├── gradlew
    │   ├── gradlew.bat
    │   ├── idea
    │   │   ├── codeStyles
    │   │   │   └── Project.xml
    │   │   ├── gradle.xml
    │   │   ├── misc.xml
    │   │   └── runConfigurations.xml
    │   ├── main
    │   │   ├── AndroidManifest.xml
    │   │   └── res
    │   │   │   └── values
    │   │   │       └── strings.xml
    │   └── settings.gradle
    ├── debug-html5
    │   ├── electron.js
    │   ├── index.html
    │   ├── package.json
    │   └── preload.js
    ├── hl
    │   ├── kfile.js
    │   ├── kincfile.js
    │   └── kore_sources.c
    ├── html5
    │   └── index.html
    ├── hxcpp
    │   └── kfile.js
    ├── intellij
    │   ├── idea
    │   │   ├── compiler.xml
    │   │   ├── copyright
    │   │   │   └── profiles_settings.xml
    │   │   ├── haxe.xml
    │   │   ├── misc.xml
    │   │   ├── modules.xml
    │   │   ├── name
    │   │   └── vcs.xml
    │   └── name.iml
    ├── node
    │   ├── package.json
    │   └── server.js
    └── psm
    │   ├── Texture.fcg
    │   ├── Texture.vcg
    │   └── app.xml
├── hooks
    └── pre-commit
├── khamake.js
├── node_modules
    ├── .bin
    │   ├── mime
    │   ├── mime.cmd
    │   ├── mime.ps1
    │   ├── static
    │   ├── static.cmd
    │   ├── static.ps1
    │   ├── tsc.ps1
    │   ├── tsserver.ps1
    │   ├── uuid
    │   ├── uuid.cmd
    │   └── uuid.ps1
    ├── .package-lock.json
    ├── @types
    │   ├── fs-extra
    │   │   ├── LICENSE
    │   │   ├── README.md
    │   │   ├── index.d.ts
    │   │   └── package.json
    │   ├── node
    │   │   ├── LICENSE
    │   │   ├── README.md
    │   │   ├── assert.d.ts
    │   │   ├── async_hooks.d.ts
    │   │   ├── base.d.ts
    │   │   ├── buffer.d.ts
    │   │   ├── child_process.d.ts
    │   │   ├── cluster.d.ts
    │   │   ├── console.d.ts
    │   │   ├── constants.d.ts
    │   │   ├── crypto.d.ts
    │   │   ├── dgram.d.ts
    │   │   ├── dns.d.ts
    │   │   ├── domain.d.ts
    │   │   ├── events.d.ts
    │   │   ├── fs.d.ts
    │   │   ├── globals.d.ts
    │   │   ├── http.d.ts
    │   │   ├── http2.d.ts
    │   │   ├── https.d.ts
    │   │   ├── inspector.d.ts
    │   │   ├── module.d.ts
    │   │   ├── net.d.ts
    │   │   ├── os.d.ts
    │   │   ├── package.json
    │   │   ├── path.d.ts
    │   │   ├── perf_hooks.d.ts
    │   │   ├── process.d.ts
    │   │   ├── punycode.d.ts
    │   │   ├── querystring.d.ts
    │   │   ├── readline.d.ts
    │   │   ├── repl.d.ts
    │   │   ├── stream.d.ts
    │   │   ├── string_decoder.d.ts
    │   │   ├── timers.d.ts
    │   │   ├── tls.d.ts
    │   │   ├── trace_events.d.ts
    │   │   ├── ts3.2
    │   │   │   ├── globals.d.ts
    │   │   │   ├── index.d.ts
    │   │   │   └── util.d.ts
    │   │   ├── tty.d.ts
    │   │   ├── url.d.ts
    │   │   ├── util.d.ts
    │   │   ├── v8.d.ts
    │   │   ├── vm.d.ts
    │   │   ├── worker_threads.d.ts
    │   │   └── zlib.d.ts
    │   └── ws
    │   │   ├── LICENSE
    │   │   ├── README.md
    │   │   ├── index.d.mts
    │   │   ├── index.d.ts
    │   │   └── package.json
    ├── anymatch
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.d.ts
    │   ├── index.js
    │   └── package.json
    ├── binary-extensions
    │   ├── binary-extensions.json
    │   ├── binary-extensions.json.d.ts
    │   ├── index.d.ts
    │   ├── index.js
    │   ├── license
    │   ├── package.json
    │   └── readme.md
    ├── braces
    │   ├── CHANGELOG.md
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   ├── lib
    │   │   ├── compile.js
    │   │   ├── constants.js
    │   │   ├── expand.js
    │   │   ├── parse.js
    │   │   ├── stringify.js
    │   │   └── utils.js
    │   └── package.json
    ├── chokidar
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   ├── lib
    │   │   ├── constants.js
    │   │   ├── fsevents-handler.js
    │   │   └── nodefs-handler.js
    │   ├── package.json
    │   └── types
    │   │   └── index.d.ts
    ├── colors
    │   ├── LICENSE
    │   ├── ReadMe.md
    │   ├── examples
    │   │   ├── normal-usage.js
    │   │   └── safe-string.js
    │   ├── index.d.ts
    │   ├── lib
    │   │   ├── colors.js
    │   │   ├── custom
    │   │   │   ├── trap.js
    │   │   │   └── zalgo.js
    │   │   ├── extendStringPrototype.js
    │   │   ├── index.js
    │   │   ├── maps
    │   │   │   ├── america.js
    │   │   │   ├── rainbow.js
    │   │   │   ├── random.js
    │   │   │   └── zebra.js
    │   │   ├── styles.js
    │   │   └── system
    │   │   │   ├── has-flag.js
    │   │   │   └── supports-colors.js
    │   ├── package.json
    │   ├── safe.d.ts
    │   ├── safe.js
    │   └── themes
    │   │   └── generic-logging.js
    ├── fill-range
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── fs-extra
    │   ├── CHANGELOG.md
    │   ├── LICENSE
    │   ├── README.md
    │   ├── docs
    │   │   ├── copy-sync.md
    │   │   ├── copy.md
    │   │   ├── emptyDir-sync.md
    │   │   ├── emptyDir.md
    │   │   ├── ensureDir-sync.md
    │   │   ├── ensureDir.md
    │   │   ├── ensureFile-sync.md
    │   │   ├── ensureFile.md
    │   │   ├── ensureLink-sync.md
    │   │   ├── ensureLink.md
    │   │   ├── ensureSymlink-sync.md
    │   │   ├── ensureSymlink.md
    │   │   ├── fs-read-write.md
    │   │   ├── move-sync.md
    │   │   ├── move.md
    │   │   ├── outputFile-sync.md
    │   │   ├── outputFile.md
    │   │   ├── outputJson-sync.md
    │   │   ├── outputJson.md
    │   │   ├── pathExists-sync.md
    │   │   ├── pathExists.md
    │   │   ├── readJson-sync.md
    │   │   ├── readJson.md
    │   │   ├── remove-sync.md
    │   │   ├── remove.md
    │   │   ├── writeJson-sync.md
    │   │   └── writeJson.md
    │   ├── lib
    │   │   ├── copy-sync
    │   │   │   ├── copy-sync.js
    │   │   │   └── index.js
    │   │   ├── copy
    │   │   │   ├── copy.js
    │   │   │   └── index.js
    │   │   ├── empty
    │   │   │   └── index.js
    │   │   ├── ensure
    │   │   │   ├── file.js
    │   │   │   ├── index.js
    │   │   │   ├── link.js
    │   │   │   ├── symlink-paths.js
    │   │   │   ├── symlink-type.js
    │   │   │   └── symlink.js
    │   │   ├── fs
    │   │   │   └── index.js
    │   │   ├── index.js
    │   │   ├── json
    │   │   │   ├── index.js
    │   │   │   ├── jsonfile.js
    │   │   │   ├── output-json-sync.js
    │   │   │   └── output-json.js
    │   │   ├── mkdirs
    │   │   │   ├── index.js
    │   │   │   ├── mkdirs-sync.js
    │   │   │   ├── mkdirs.js
    │   │   │   └── win32.js
    │   │   ├── move-sync
    │   │   │   └── index.js
    │   │   ├── move
    │   │   │   └── index.js
    │   │   ├── output
    │   │   │   └── index.js
    │   │   ├── path-exists
    │   │   │   └── index.js
    │   │   ├── remove
    │   │   │   ├── index.js
    │   │   │   └── rimraf.js
    │   │   └── util
    │   │   │   ├── buffer.js
    │   │   │   └── utimes.js
    │   └── package.json
    ├── fsevents
    │   ├── LICENSE
    │   ├── README.md
    │   ├── fsevents.d.ts
    │   ├── fsevents.js
    │   ├── fsevents.node
    │   └── package.json
    ├── glob-parent
    │   ├── CHANGELOG.md
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── graceful-fs
    │   ├── LICENSE
    │   ├── README.md
    │   ├── fs.js
    │   ├── graceful-fs.js
    │   ├── legacy-streams.js
    │   ├── package.json
    │   └── polyfills.js
    ├── is-binary-path
    │   ├── index.d.ts
    │   ├── index.js
    │   ├── license
    │   ├── package.json
    │   └── readme.md
    ├── is-extglob
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── is-glob
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── is-number
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── jsonfile
    │   ├── CHANGELOG.md
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── mime
    │   ├── .npmignore
    │   ├── CHANGELOG.md
    │   ├── LICENSE
    │   ├── README.md
    │   ├── cli.js
    │   ├── mime.js
    │   ├── package.json
    │   ├── src
    │   │   ├── build.js
    │   │   └── test.js
    │   └── types.json
    ├── minimist
    │   ├── .travis.yml
    │   ├── LICENSE
    │   ├── example
    │   │   └── parse.js
    │   ├── index.js
    │   ├── package.json
    │   ├── readme.markdown
    │   └── test
    │   │   ├── bool.js
    │   │   ├── dash.js
    │   │   ├── default_bool.js
    │   │   ├── dotted.js
    │   │   ├── long.js
    │   │   ├── num.js
    │   │   ├── parse.js
    │   │   ├── parse_modified.js
    │   │   ├── short.js
    │   │   └── whitespace.js
    ├── node-static
    │   ├── .npmignore
    │   ├── LICENSE
    │   ├── README.md
    │   ├── benchmark
    │   │   └── node-static-0.3.0.txt
    │   ├── bin
    │   │   └── cli.js
    │   ├── examples
    │   │   └── file-server.js
    │   ├── lib
    │   │   ├── node-static.js
    │   │   └── node-static
    │   │   │   └── util.js
    │   ├── package.json
    │   └── test
    │   │   ├── fixtures
    │   │       ├── empty.css
    │   │       ├── hello.txt
    │   │       ├── index.html
    │   │       └── there
    │   │       │   └── index.html
    │   │   └── integration
    │   │       └── node-static-test.js
    ├── normalize-path
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── optimist
    │   ├── .travis.yml
    │   ├── LICENSE
    │   ├── example
    │   │   ├── bool.js
    │   │   ├── boolean_double.js
    │   │   ├── boolean_single.js
    │   │   ├── default_hash.js
    │   │   ├── default_singles.js
    │   │   ├── divide.js
    │   │   ├── line_count.js
    │   │   ├── line_count_options.js
    │   │   ├── line_count_wrap.js
    │   │   ├── nonopt.js
    │   │   ├── reflect.js
    │   │   ├── short.js
    │   │   ├── string.js
    │   │   ├── usage-options.js
    │   │   └── xup.js
    │   ├── index.js
    │   ├── package.json
    │   ├── readme.markdown
    │   └── test
    │   │   ├── _.js
    │   │   ├── _
    │   │       ├── argv.js
    │   │       └── bin.js
    │   │   ├── dash.js
    │   │   ├── parse.js
    │   │   ├── parse_modified.js
    │   │   ├── short.js
    │   │   ├── usage.js
    │   │   └── whitespace.js
    ├── picomatch
    │   ├── CHANGELOG.md
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   ├── lib
    │   │   ├── constants.js
    │   │   ├── parse.js
    │   │   ├── picomatch.js
    │   │   ├── scan.js
    │   │   └── utils.js
    │   └── package.json
    ├── promise-parallel-throttle
    │   ├── LICENSE
    │   ├── README.md
    │   ├── build
    │   │   ├── throttle.d.ts
    │   │   └── throttle.js
    │   ├── coverage
    │   │   ├── clover.xml
    │   │   ├── coverage-final.json
    │   │   ├── lcov-report
    │   │   │   ├── base.css
    │   │   │   ├── index.html
    │   │   │   ├── prettify.css
    │   │   │   ├── prettify.js
    │   │   │   ├── sort-arrow-sprite.png
    │   │   │   ├── sorter.js
    │   │   │   └── throttle.ts.html
    │   │   ├── lcov.info
    │   │   └── remapped
    │   │   │   ├── coverage.json
    │   │   │   ├── coverage.txt
    │   │   │   ├── html
    │   │   │       ├── base.css
    │   │   │       ├── index.html
    │   │   │       ├── prettify.css
    │   │   │       ├── prettify.js
    │   │   │       ├── sort-arrow-sprite.png
    │   │   │       ├── sorter.js
    │   │   │       └── src
    │   │   │       │   ├── index.html
    │   │   │       │   └── throttle.ts.html
    │   │   │   └── lcov.info
    │   ├── package.json
    │   ├── tsconfig.json
    │   ├── tslint.json
    │   └── yarn.lock
    ├── readdirp
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.d.ts
    │   ├── index.js
    │   └── package.json
    ├── to-regex-range
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── universalify
    │   ├── LICENSE
    │   ├── README.md
    │   ├── index.js
    │   └── package.json
    ├── uuid
    │   ├── .eslintrc.json
    │   ├── AUTHORS
    │   ├── CHANGELOG.md
    │   ├── LICENSE.md
    │   ├── README.md
    │   ├── README_js.md
    │   ├── bin
    │   │   └── uuid
    │   ├── index.js
    │   ├── lib
    │   │   ├── bytesToUuid.js
    │   │   ├── md5-browser.js
    │   │   ├── md5.js
    │   │   ├── rng-browser.js
    │   │   ├── rng.js
    │   │   ├── sha1-browser.js
    │   │   ├── sha1.js
    │   │   └── v35.js
    │   ├── package.json
    │   ├── v1.js
    │   ├── v3.js
    │   ├── v4.js
    │   └── v5.js
    ├── wordwrap
    │   ├── LICENSE
    │   ├── README.markdown
    │   ├── example
    │   │   ├── center.js
    │   │   └── meat.js
    │   ├── index.js
    │   ├── package.json
    │   └── test
    │   │   ├── break.js
    │   │   ├── idleness.txt
    │   │   └── wrap.js
    └── ws
    │   ├── LICENSE
    │   ├── README.md
    │   ├── browser.js
    │   ├── index.js
    │   ├── lib
    │       ├── buffer-util.js
    │       ├── constants.js
    │       ├── event-target.js
    │       ├── extension.js
    │       ├── limiter.js
    │       ├── permessage-deflate.js
    │       ├── receiver.js
    │       ├── sender.js
    │       ├── stream.js
    │       ├── subprotocol.js
    │       ├── validation.js
    │       ├── websocket-server.js
    │       └── websocket.js
    │   ├── package.json
    │   └── wrapper.mjs
├── out
    ├── Architecture.js
    ├── AssetConverter.js
    ├── AudioApi.js
    ├── Color.js
    ├── Converter.js
    ├── Exporters
    │   ├── AndroidExporter.js
    │   ├── CSharpExporter.js
    │   ├── DebugHtml5Exporter.js
    │   ├── EmptyExporter.js
    │   ├── Exporter.js
    │   ├── FlashExporter.js
    │   ├── Html5Exporter.js
    │   ├── Html5WorkerExporter.js
    │   ├── JavaExporter.js
    │   ├── KhaExporter.js
    │   ├── KoreExporter.js
    │   ├── KoreHLExporter.js
    │   ├── KromExporter.js
    │   ├── NodeExporter.js
    │   ├── PlayStationMobileExporter.js
    │   ├── UnityExporter.js
    │   └── WpfExporter.js
    ├── GraphicsApi.js
    ├── Haxe.js
    ├── HaxeCompiler.js
    ├── HaxeProject.js
    ├── Icon.js
    ├── ImageTool.js
    ├── Options.js
    ├── Platform.js
    ├── Project.js
    ├── ProjectFile.js
    ├── RayTraceApi.js
    ├── ShaderCompiler.js
    ├── VisualStudioVersion.js
    ├── VrApi.js
    ├── XmlWriter.js
    ├── defaults.js
    ├── exec.js
    ├── init.js
    ├── khamake.js
    ├── korepath.js
    ├── log.js
    ├── main.js
    └── typings.json
├── package-lock.json
├── package.json
├── src
    ├── Architecture.ts
    ├── AssetConverter.ts
    ├── AudioApi.ts
    ├── Color.ts
    ├── Converter.ts
    ├── Exporters
    │   ├── CSharpExporter.ts
    │   ├── DebugHtml5Exporter.ts
    │   ├── EmptyExporter.ts
    │   ├── Exporter.ts
    │   ├── FlashExporter.ts
    │   ├── Html5Exporter.ts
    │   ├── Html5WorkerExporter.ts
    │   ├── JavaExporter.ts
    │   ├── KhaExporter.ts
    │   ├── KoreExporter.ts
    │   ├── KoreHLExporter.ts
    │   ├── KromExporter.ts
    │   ├── NodeExporter.ts
    │   ├── PlayStationMobileExporter.ts
    │   └── WpfExporter.ts
    ├── GraphicsApi.ts
    ├── Haxe.ts
    ├── HaxeCompiler.ts
    ├── HaxeProject.ts
    ├── Icon.ts
    ├── ImageTool.ts
    ├── Options.ts
    ├── Platform.ts
    ├── Project.ts
    ├── ProjectFile.ts
    ├── RayTraceApi.ts
    ├── ShaderCompiler.ts
    ├── VisualStudioVersion.ts
    ├── VrApi.ts
    ├── XmlWriter.ts
    ├── defaults.ts
    ├── exec.ts
    ├── init.ts
    ├── khamake.ts
    ├── korepath.ts
    ├── log.ts
    └── main.ts
├── tsconfig.json
└── tslint.json
/.gitattributes:
--------------------------------------------------------------------------------
1 | * -text
2 | 
--------------------------------------------------------------------------------
/.github/funding.yml:
--------------------------------------------------------------------------------
1 | github: RobDangerous
2 | patreon: RobDangerous
3 | 
--------------------------------------------------------------------------------
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
 1 | name: Build
 2 | 
 3 | on:
 4 |   push:
 5 |     branches:
 6 |     - master
 7 |   pull_request:
 8 |     branches:
 9 |     - master
10 | 
11 | jobs:
12 |   build:
13 | 
14 |     runs-on: ubuntu-latest
15 |     
16 |     steps:
17 |     - uses: actions/checkout@v1
18 |     - name: Install tslint
19 |       run: sudo npm install -g tslint
20 |     - name: Lint
21 |       run: tslint -c tslint.json src/*.ts src/Exporters/*.ts
22 |     - name: Compile
23 |       run: tsc
24 | 
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
 1 | *.js.map
 2 | /.vscode/.BROWSE.VC.DB
 3 | /.vscode/.BROWSE.VC.DB-shm
 4 | /.vscode/.BROWSE.VC.DB-wal
 5 | /node_modules/typescript
 6 | /node_modules/.bin/tsserver.cmd
 7 | /node_modules/.bin/tsc
 8 | /node_modules/.bin/tsc.cmd
 9 | /node_modules/.bin/tsserver
10 | 
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
 1 | {
 2 | 	// Use IntelliSense to learn about possible attributes.
 3 | 	// Hover to view descriptions of existing attributes.
 4 | 	// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 5 | 	"version": "0.2.0",
 6 | 	"configurations": [
 7 | 		{
 8 | 			"type": "node",
 9 | 			"request": "launch",
10 | 			"name": "Launch khamake",
11 | 			"program": "${workspaceFolder}/../../make.js",
12 | 			"args": [
13 | 				"html5"
14 | 			],
15 | 			"cwd": "${workspaceFolder}/../../..",
16 | 			// "preLaunchTask": "tsc: build - tsconfig.json",
17 | 			"outFiles": [
18 | 				"${workspaceFolder}/out/**/*.js"
19 | 			]
20 | 		}
21 | 	]
22 | }
23 | 
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | 	"search.exclude": {
3 | 		"/out": true,
4 | 	}
5 | }
6 | 
--------------------------------------------------------------------------------
/.vscode/tasks.json:
--------------------------------------------------------------------------------
 1 | {
 2 | 	"version": "2.0.0",
 3 | 	"tasks": [
 4 | 	{
 5 | 		"type": "typescript",
 6 | 		"tsconfig": "tsconfig.json",
 7 | 		"problemMatcher": [
 8 | 		  "$tsc"
 9 | 		],
10 | 		"group": {
11 | 			"kind": "build",
12 | 			"isDefault": true
13 | 		}
14 | 	},
15 | 	{
16 | 		"label": "Linter",
17 | 		"type": "shell",
18 | 		"command": "tslint",
19 | 		"args": [
20 | 			"-c",
21 | 			"tslint.json",
22 | 			"src/*.ts",
23 | 			"src/Exporters/*.ts",
24 | 		],
25 | 		"problemMatcher": []
26 | 	}
27 | 	]
28 | }
29 | 
--------------------------------------------------------------------------------
/Data/android/app/build.gradle:
--------------------------------------------------------------------------------
 1 | apply plugin: 'com.android.application'
 2 | 
 3 | android {
 4 |     compileSdkVersion 28
 5 |     defaultConfig {
 6 |         applicationId "{package}"
 7 |         minSdkVersion 14
 8 |         targetSdkVersion 28
 9 |         versionCode 1
10 |         versionName "1.0"
11 |     }
12 |     signingConfigs {
13 |         release {
14 |             if (project.hasProperty('RELEASE_STORE_FILE')) {
15 |                 storeFile file(RELEASE_STORE_FILE)
16 |                 storePassword RELEASE_STORE_PASSWORD
17 |                 keyAlias RELEASE_KEY_ALIAS
18 |                 keyPassword RELEASE_KEY_PASSWORD
19 |             }
20 |         }
21 |     }
22 |     buildTypes {
23 |         release {
24 |             if (project.hasProperty('RELEASE_STORE_FILE')) {
25 |                 signingConfig signingConfigs.release
26 |             }
27 |             minifyEnabled false
28 |             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
29 |         }
30 |     }
31 | 	sourceSets {
32 | 		main.java.srcDirs += 'src/main/../../../src'
33 | 	}
34 | }
35 | 
--------------------------------------------------------------------------------
/Data/android/app/gitignore:
--------------------------------------------------------------------------------
1 | /build
2 | 
--------------------------------------------------------------------------------
/Data/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
 1 | # Add project specific ProGuard rules here.
 2 | # You can control the set of applied configuration files using the
 3 | # proguardFiles setting in build.gradle.
 4 | #
 5 | # For more details, see
 6 | #   http://developer.android.com/guide/developing/tools/proguard.html
 7 | 
 8 | # If your project uses WebView with JS, uncomment the following
 9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | #   public *;
13 | #}
14 | 
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 | 
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 | 
--------------------------------------------------------------------------------
/Data/android/build.gradle:
--------------------------------------------------------------------------------
 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
 2 | 
 3 | buildscript {
 4 |     repositories {
 5 |         google()
 6 |         jcenter()
 7 |         
 8 |     }
 9 |     dependencies {
10 |         classpath 'com.android.tools.build:gradle:3.3.0'
11 |         
12 |         // NOTE: Do not place your application dependencies here; they belong
13 |         // in the individual module build.gradle files
14 |     }
15 | }
16 | 
17 | allprojects {
18 |     repositories {
19 |         google()
20 |         jcenter()
21 |         
22 |     }
23 | }
24 | 
25 | task clean(type: Delete) {
26 |     delete rootProject.buildDir
27 | }
28 | 
--------------------------------------------------------------------------------
/Data/android/gitignore:
--------------------------------------------------------------------------------
 1 | *.iml
 2 | .gradle
 3 | /local.properties
 4 | /.idea/caches
 5 | /.idea/libraries
 6 | /.idea/modules.xml
 7 | /.idea/workspace.xml
 8 | /.idea/navEditor.xml
 9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | 
--------------------------------------------------------------------------------
/Data/android/gradle.properties:
--------------------------------------------------------------------------------
 1 | # Project-wide Gradle settings.
 2 | # IDE (e.g. Android Studio) users:
 3 | # Gradle settings configured through the IDE *will override*
 4 | # any settings specified in this file.
 5 | # For more details on how to configure your build environment visit
 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
 7 | # Specifies the JVM arguments used for the daemon process.
 8 | # The setting is particularly useful for tweaking memory settings.
 9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | 
15 | 
16 | 
--------------------------------------------------------------------------------
/Data/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Kode/khamake/6a859252b7ef6250f43d0a410e44e7ff1e538b2c/Data/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Data/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Feb 03 14:14:14 CET 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
7 | 
--------------------------------------------------------------------------------
/Data/android/idea/gradle.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     
17 |   
18 | 
--------------------------------------------------------------------------------
/Data/android/idea/misc.xml:
--------------------------------------------------------------------------------
1 | 
2 | 
3 |   
4 |     
5 |   
6 |   
7 |     
8 |   
9 | 
--------------------------------------------------------------------------------
/Data/android/idea/runConfigurations.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     
 5 |       
 6 |         
 7 |         
 8 |         
 9 |       
10 |     
11 |   
12 | 
--------------------------------------------------------------------------------
/Data/android/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
 1 | {permissions}
 2 | 	
 7 | 		
13 | 			
14 | 				
15 | 				
16 | 			
17 | 		
18 | 	
19 | 
20 | 
--------------------------------------------------------------------------------
/Data/android/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 | 
2 |     {name}
3 | 
4 | 
--------------------------------------------------------------------------------
/Data/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | 
--------------------------------------------------------------------------------
/Data/debug-html5/index.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 | 	
 5 | 	
 6 | 	
 7 | 	{Name}
 8 | 	
21 | 
22 | 
23 | 	
24 | 	
25 | 
26 | 
27 | 
--------------------------------------------------------------------------------
/Data/debug-html5/package.json:
--------------------------------------------------------------------------------
1 | {
2 |   "name"    : "kodestudio-debug",
3 |   "version" : "0.1.0",
4 |   "main"    : "electron.js"
5 | }
6 | 
--------------------------------------------------------------------------------
/Data/debug-html5/preload.js:
--------------------------------------------------------------------------------
 1 | const electron = require('electron');
 2 | const fs = require('fs');
 3 | const path = require('path');
 4 | 
 5 | let blobId = 0;
 6 | let blobRequests = {};
 7 | 
 8 | electron.ipcRenderer.on('blob-loaded', (event, args) => {
 9 | 	const blobRequest = blobRequests[args.id];
10 | 	delete blobRequests[args.id];
11 | 	blobRequest.done(new Uint8Array(args.data));
12 | });
13 | 
14 | electron.ipcRenderer.on('blob-failed', (event, args) => {
15 | 	const blobRequest = blobRequests[args.id];
16 | 	delete blobRequests[args.id];
17 | 	blobRequest.failed({url: args.url, error: args.error});
18 | });
19 | 
20 | electron.contextBridge.exposeInMainWorld(
21 | 	'electron', {
22 | 		{Expose}
23 | 		showWindow: (title, x, y, width, height) => {
24 | 			if (electron.webFrame.setZoomLevelLimits != null) { // TODO: Figure out why this check is sometimes required
25 | 				electron.webFrame.setZoomLevelLimits(1, 1);
26 | 			}
27 | 			const options = {
28 | 				title: title,
29 | 				x: x,
30 | 				y: y,
31 | 				width: width,
32 | 				height: height,
33 | 			};
34 | 			electron.ipcRenderer.send('show-window', options);
35 | 		},
36 | 		loadBlob: (desc, done, failed) => {
37 | 			const options = {
38 | 				file: desc.files[0],
39 | 				id: blobId++
40 | 			};
41 | 			blobRequests[options.id] = {
42 | 				done: done,
43 | 				failed: failed
44 | 			};
45 | 			electron.ipcRenderer.send('load-blob', options);
46 | 		}
47 | 	}
48 | );
49 | 
--------------------------------------------------------------------------------
/Data/hl/kfile.js:
--------------------------------------------------------------------------------
1 | let project = new Project('HaxeC');
2 | project.addFiles('kore_sources.c');
3 | project.addFiles('Sources/**.metal');
4 | project.addIncludeDirs('.');
5 | resolve(project);
6 | 
--------------------------------------------------------------------------------
/Data/hl/kincfile.js:
--------------------------------------------------------------------------------
1 | let project = new Project('HaxeC');
2 | project.addFiles('kore_sources.c');
3 | project.addFiles('Sources/**.metal');
4 | project.addIncludeDirs('.');
5 | resolve(project);
6 | 
--------------------------------------------------------------------------------
/Data/hl/kore_sources.c:
--------------------------------------------------------------------------------
1 | #include "sources.c"
2 | 
3 | void frame() {
4 | 	kha_SystemImpl_frame();
5 | }
6 | 
--------------------------------------------------------------------------------
/Data/html5/index.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 | 	
 5 | 	
 6 | 	{Name}
 7 | 
 8 | 
 9 | 	
10 | 	
11 | 
12 | 
13 | 
--------------------------------------------------------------------------------
/Data/hxcpp/kfile.js:
--------------------------------------------------------------------------------
 1 | let project = new Project('HaxeCpp');
 2 | if (platform === Platform.WindowsApp) {
 3 | 	project.addFiles('Sources/**.h', 'Sources/**.cpp');
 4 | }
 5 | else {
 6 | 	project.addFiles('Sources/**.h', 'Sources/**.cpp', { pch: 'hxcpp.h' });
 7 | }
 8 | project.addFiles('Sources/src/resources/**.cpp');
 9 | project.addFiles('Sources/src/__lib__.cpp', 'Sources/src/__boot__.cpp');
10 | project.addExcludes('Sources/src/__main__.cpp');
11 | project.addIncludeDirs('Sources/include');
12 | //project.addDefine('HX_SMART_STRINGS');
13 | resolve(project);
14 | 
--------------------------------------------------------------------------------
/Data/intellij/idea/compiler.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     
 5 |     
 6 |       
 7 |       
 8 |       
 9 |       
10 |       
11 |       
12 |       
13 |       
14 |       
15 |     
16 |     
17 |       
18 |         
19 |       
20 |     
21 |   
22 | 
--------------------------------------------------------------------------------
/Data/intellij/idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 | 
2 |   
3 | 
--------------------------------------------------------------------------------
/Data/intellij/idea/haxe.xml:
--------------------------------------------------------------------------------
1 | 
2 | 
3 |   
4 | 
--------------------------------------------------------------------------------
/Data/intellij/idea/modules.xml:
--------------------------------------------------------------------------------
1 | 
2 | 
3 |   
4 |     
5 |       
6 |     
7 |   
8 | 
--------------------------------------------------------------------------------
/Data/intellij/idea/name:
--------------------------------------------------------------------------------
1 | {name}
--------------------------------------------------------------------------------
/Data/intellij/idea/vcs.xml:
--------------------------------------------------------------------------------
1 | 
2 | 
3 |   
4 |     
5 |   
6 | 
--------------------------------------------------------------------------------
/Data/intellij/name.iml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     
 5 |     
 6 |     
 7 |     
 8 |     
 9 |     
10 |     
11 |     
12 |     
13 |   
14 |   
15 |     
16 |     
17 |     
18 | {sources}
19 |     
20 | {libraries}    
21 |     
22 |     
23 |   
24 | 
25 | 
--------------------------------------------------------------------------------
/Data/node/package.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "kha-server",
 3 |   "version": "1.0.0",
 4 |   "description": "",
 5 |   "main": "kha.js",
 6 |   "dependencies": {
 7 |     "express": "^4.13.3",
 8 |     "express-ws": "^0.2.6"
 9 |   },
10 |   "devDependencies": {
11 |     "nodemon": "^1.11.0",
12 |     "livereloadx": "^0.3.10"
13 |   },
14 |   "scripts": {
15 |     "autoserve": "nodemon kha.js",
16 |     "autoreload": "livereloadx ./",
17 |     "test": "echo \"Error: no test specified\" && exit 1"
18 |   },
19 |   "author": "khamake",
20 |   "license": "Zlib"
21 | }
22 | 
--------------------------------------------------------------------------------
/Data/psm/Texture.fcg:
--------------------------------------------------------------------------------
 1 | /*
 2 | #version 100
 3 | 
 4 | #ifdef GL_ES
 5 | precision mediump float;
 6 | #endif
 7 | 
 8 | uniform sampler2D tex;
 9 | varying vec2 texCoord;
10 | varying vec4 color;
11 | 
12 | void kore() {
13 | 	vec4 texcolor = texture2D(tex, texCoord) * color;
14 | 	texcolor.rgb *= color.a;
15 | 	gl_FragColor = texcolor;
16 | }
17 | */
18 | 
19 | /*void main(float2 in  v_TexCoord : TEXCOORD0, float4 out Color : COLOR, uniform sampler2D Texture0 : TEXUNIT0) {
20 | 	Color = tex2D(Texture0, v_TexCoord);
21 | }*/
22 | 
23 | void main(float2 in texCoord : TEXCOORD0, float4 in color : TEXCOORD1, float4 out gl_FragColor : COLOR, uniform sampler2D tex : TEXUNIT0) {
24 | 	float4 texcolor = tex2D(tex, texCoord) * color;
25 | 	//texcolor.rgb *= color.a;
26 | 	gl_FragColor = texcolor;
27 | 	//gl_FragColor = float4(1.0, 0.0, 0.0, 1.0);
28 | }
29 | 
--------------------------------------------------------------------------------
/Data/psm/Texture.vcg:
--------------------------------------------------------------------------------
 1 | /*
 2 | #version 100
 3 | 
 4 | attribute vec3 vertexPosition;
 5 | attribute vec2 texPosition;
 6 | attribute vec4 vertexColor;
 7 | uniform mat4 projectionMatrix;
 8 | varying vec2 texCoord;
 9 | varying vec4 color;
10 | 
11 | void kore() {
12 | 	gl_Position = projectionMatrix * vec4(vertexPosition, 1.0);
13 | 	texCoord = texPosition;
14 | 	color = vertexColor;
15 | }
16 | */
17 | 
18 | /*void main(float4 in a_Position : POSITION, float2 in a_TexCoord : TEXCOORD0, float4 out v_Position : POSITION, float2 out v_TexCoord : TEXCOORD0, uniform float4x4 WorldViewProj) {
19 | 	v_Position = mul(a_Position, WorldViewProj);
20 | 	v_TexCoord  = a_TexCoord;
21 | }*/
22 | 
23 | void main(
24 | 	float3 in vertexPosition : TEXCOORD0, float2 in texPosition : TEXCOORD1, float4 in vertexColor : TEXCOORD2,
25 | 	float4 out gl_Position : POSITION, float2 out texCoord : TEXCOORD0, float4 out color : TEXCOORD1,
26 | 	uniform float4x4 projectionMatrix) {
27 | 	gl_Position = mul(transpose(projectionMatrix), float4(vertexPosition, 1.0));
28 | 	gl_Position.z = 0.5;
29 | 	texCoord = texPosition;
30 | 	color = vertexColor;
31 | }
32 | 
--------------------------------------------------------------------------------
/Data/psm/app.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 	
 4 | 		
 5 | 	
 6 | 	
 7 | 		
 8 | 		
 9 | 	
10 | 
11 | 
--------------------------------------------------------------------------------
/hooks/pre-commit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | tslint -c tslint.json src/*.ts src/Exporters/*.ts
3 | 
--------------------------------------------------------------------------------
/khamake.js:
--------------------------------------------------------------------------------
1 | let versions = process.version.substring(1).split('.');
2 | if ((Number(versions[0]) < 8 || (Number(versions[0]) === 8 && Number(versions[1]) < 9)) && process.version !== 'v7.4.0' /* Kode Studio 17.9 */) {
3 | 	console.error('Requires Node.js version 8.9 or higher but found ' + process.version + '.');
4 | 	process.exit(1);
5 | }
6 | 
7 | require('./out/khamake.js');
8 | 
--------------------------------------------------------------------------------
/node_modules/.bin/mime:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
 3 | 
 4 | case `uname` in
 5 |     *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
 6 | esac
 7 | 
 8 | if [ -x "$basedir/node" ]; then
 9 |   exec "$basedir/node"  "$basedir/../mime/cli.js" "$@"
10 | else 
11 |   exec node  "$basedir/../mime/cli.js" "$@"
12 | fi
13 | 
--------------------------------------------------------------------------------
/node_modules/.bin/mime.cmd:
--------------------------------------------------------------------------------
 1 | @ECHO off
 2 | GOTO start
 3 | :find_dp0
 4 | SET dp0=%~dp0
 5 | EXIT /b
 6 | :start
 7 | SETLOCAL
 8 | CALL :find_dp0
 9 | 
10 | IF EXIST "%dp0%\node.exe" (
11 |   SET "_prog=%dp0%\node.exe"
12 | ) ELSE (
13 |   SET "_prog=node"
14 |   SET PATHEXT=%PATHEXT:;.JS;=;%
15 | )
16 | 
17 | endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\mime\cli.js" %*
18 | 
--------------------------------------------------------------------------------
/node_modules/.bin/mime.ps1:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/env pwsh
 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
 3 | 
 4 | $exe=""
 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
 6 |   # Fix case when both the Windows and Linux builds of Node
 7 |   # are installed in the same directory
 8 |   $exe=".exe"
 9 | }
10 | $ret=0
11 | if (Test-Path "$basedir/node$exe") {
12 |   # Support pipeline input
13 |   if ($MyInvocation.ExpectingInput) {
14 |     $input | & "$basedir/node$exe"  "$basedir/../mime/cli.js" $args
15 |   } else {
16 |     & "$basedir/node$exe"  "$basedir/../mime/cli.js" $args
17 |   }
18 |   $ret=$LASTEXITCODE
19 | } else {
20 |   # Support pipeline input
21 |   if ($MyInvocation.ExpectingInput) {
22 |     $input | & "node$exe"  "$basedir/../mime/cli.js" $args
23 |   } else {
24 |     & "node$exe"  "$basedir/../mime/cli.js" $args
25 |   }
26 |   $ret=$LASTEXITCODE
27 | }
28 | exit $ret
29 | 
--------------------------------------------------------------------------------
/node_modules/.bin/static:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
 3 | 
 4 | case `uname` in
 5 |     *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
 6 | esac
 7 | 
 8 | if [ -x "$basedir/node" ]; then
 9 |   exec "$basedir/node"  "$basedir/../node-static/bin/cli.js" "$@"
10 | else 
11 |   exec node  "$basedir/../node-static/bin/cli.js" "$@"
12 | fi
13 | 
--------------------------------------------------------------------------------
/node_modules/.bin/static.cmd:
--------------------------------------------------------------------------------
 1 | @ECHO off
 2 | GOTO start
 3 | :find_dp0
 4 | SET dp0=%~dp0
 5 | EXIT /b
 6 | :start
 7 | SETLOCAL
 8 | CALL :find_dp0
 9 | 
10 | IF EXIST "%dp0%\node.exe" (
11 |   SET "_prog=%dp0%\node.exe"
12 | ) ELSE (
13 |   SET "_prog=node"
14 |   SET PATHEXT=%PATHEXT:;.JS;=;%
15 | )
16 | 
17 | endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\node-static\bin\cli.js" %*
18 | 
--------------------------------------------------------------------------------
/node_modules/.bin/static.ps1:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/env pwsh
 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
 3 | 
 4 | $exe=""
 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
 6 |   # Fix case when both the Windows and Linux builds of Node
 7 |   # are installed in the same directory
 8 |   $exe=".exe"
 9 | }
10 | $ret=0
11 | if (Test-Path "$basedir/node$exe") {
12 |   # Support pipeline input
13 |   if ($MyInvocation.ExpectingInput) {
14 |     $input | & "$basedir/node$exe"  "$basedir/../node-static/bin/cli.js" $args
15 |   } else {
16 |     & "$basedir/node$exe"  "$basedir/../node-static/bin/cli.js" $args
17 |   }
18 |   $ret=$LASTEXITCODE
19 | } else {
20 |   # Support pipeline input
21 |   if ($MyInvocation.ExpectingInput) {
22 |     $input | & "node$exe"  "$basedir/../node-static/bin/cli.js" $args
23 |   } else {
24 |     & "node$exe"  "$basedir/../node-static/bin/cli.js" $args
25 |   }
26 |   $ret=$LASTEXITCODE
27 | }
28 | exit $ret
29 | 
--------------------------------------------------------------------------------
/node_modules/.bin/tsc.ps1:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/env pwsh
 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
 3 | 
 4 | $exe=""
 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
 6 |   # Fix case when both the Windows and Linux builds of Node
 7 |   # are installed in the same directory
 8 |   $exe=".exe"
 9 | }
10 | $ret=0
11 | if (Test-Path "$basedir/node$exe") {
12 |   # Support pipeline input
13 |   if ($MyInvocation.ExpectingInput) {
14 |     $input | & "$basedir/node$exe"  "$basedir/../typescript/bin/tsc" $args
15 |   } else {
16 |     & "$basedir/node$exe"  "$basedir/../typescript/bin/tsc" $args
17 |   }
18 |   $ret=$LASTEXITCODE
19 | } else {
20 |   # Support pipeline input
21 |   if ($MyInvocation.ExpectingInput) {
22 |     $input | & "node$exe"  "$basedir/../typescript/bin/tsc" $args
23 |   } else {
24 |     & "node$exe"  "$basedir/../typescript/bin/tsc" $args
25 |   }
26 |   $ret=$LASTEXITCODE
27 | }
28 | exit $ret
29 | 
--------------------------------------------------------------------------------
/node_modules/.bin/tsserver.ps1:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/env pwsh
 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
 3 | 
 4 | $exe=""
 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
 6 |   # Fix case when both the Windows and Linux builds of Node
 7 |   # are installed in the same directory
 8 |   $exe=".exe"
 9 | }
10 | $ret=0
11 | if (Test-Path "$basedir/node$exe") {
12 |   # Support pipeline input
13 |   if ($MyInvocation.ExpectingInput) {
14 |     $input | & "$basedir/node$exe"  "$basedir/../typescript/bin/tsserver" $args
15 |   } else {
16 |     & "$basedir/node$exe"  "$basedir/../typescript/bin/tsserver" $args
17 |   }
18 |   $ret=$LASTEXITCODE
19 | } else {
20 |   # Support pipeline input
21 |   if ($MyInvocation.ExpectingInput) {
22 |     $input | & "node$exe"  "$basedir/../typescript/bin/tsserver" $args
23 |   } else {
24 |     & "node$exe"  "$basedir/../typescript/bin/tsserver" $args
25 |   }
26 |   $ret=$LASTEXITCODE
27 | }
28 | exit $ret
29 | 
--------------------------------------------------------------------------------
/node_modules/.bin/uuid:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
 3 | 
 4 | case `uname` in
 5 |     *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
 6 | esac
 7 | 
 8 | if [ -x "$basedir/node" ]; then
 9 |   exec "$basedir/node"  "$basedir/../uuid/bin/uuid" "$@"
10 | else 
11 |   exec node  "$basedir/../uuid/bin/uuid" "$@"
12 | fi
13 | 
--------------------------------------------------------------------------------
/node_modules/.bin/uuid.cmd:
--------------------------------------------------------------------------------
 1 | @ECHO off
 2 | GOTO start
 3 | :find_dp0
 4 | SET dp0=%~dp0
 5 | EXIT /b
 6 | :start
 7 | SETLOCAL
 8 | CALL :find_dp0
 9 | 
10 | IF EXIST "%dp0%\node.exe" (
11 |   SET "_prog=%dp0%\node.exe"
12 | ) ELSE (
13 |   SET "_prog=node"
14 |   SET PATHEXT=%PATHEXT:;.JS;=;%
15 | )
16 | 
17 | endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%"  "%dp0%\..\uuid\bin\uuid" %*
18 | 
--------------------------------------------------------------------------------
/node_modules/.bin/uuid.ps1:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/env pwsh
 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
 3 | 
 4 | $exe=""
 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
 6 |   # Fix case when both the Windows and Linux builds of Node
 7 |   # are installed in the same directory
 8 |   $exe=".exe"
 9 | }
10 | $ret=0
11 | if (Test-Path "$basedir/node$exe") {
12 |   # Support pipeline input
13 |   if ($MyInvocation.ExpectingInput) {
14 |     $input | & "$basedir/node$exe"  "$basedir/../uuid/bin/uuid" $args
15 |   } else {
16 |     & "$basedir/node$exe"  "$basedir/../uuid/bin/uuid" $args
17 |   }
18 |   $ret=$LASTEXITCODE
19 | } else {
20 |   # Support pipeline input
21 |   if ($MyInvocation.ExpectingInput) {
22 |     $input | & "node$exe"  "$basedir/../uuid/bin/uuid" $args
23 |   } else {
24 |     & "node$exe"  "$basedir/../uuid/bin/uuid" $args
25 |   }
26 |   $ret=$LASTEXITCODE
27 | }
28 | exit $ret
29 | 
--------------------------------------------------------------------------------
/node_modules/@types/fs-extra/LICENSE:
--------------------------------------------------------------------------------
 1 |     MIT License
 2 | 
 3 |     Copyright (c) Microsoft Corporation. All rights reserved.
 4 | 
 5 |     Permission is hereby granted, free of charge, to any person obtaining a copy
 6 |     of this software and associated documentation files (the "Software"), to deal
 7 |     in the Software without restriction, including without limitation the rights
 8 |     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 9 |     copies of the Software, and to permit persons to whom the Software is
10 |     furnished to do so, subject to the following conditions:
11 | 
12 |     The above copyright notice and this permission notice shall be included in all
13 |     copies or substantial portions of the Software.
14 | 
15 |     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 |     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 |     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 |     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 |     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 |     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 |     SOFTWARE
22 | 
--------------------------------------------------------------------------------
/node_modules/@types/fs-extra/README.md:
--------------------------------------------------------------------------------
 1 | # Installation
 2 | > `npm install --save @types/fs-extra`
 3 | 
 4 | # Summary
 5 | This package contains type definitions for fs-extra (https://github.com/jprichardson/node-fs-extra).
 6 | 
 7 | # Details
 8 | Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fs-extra
 9 | 
10 | Additional Details
11 |  * Last updated: Wed, 11 Apr 2018 19:11:59 GMT
12 |  * Dependencies: fs, node
13 |  * Global values: none
14 | 
15 | # Credits
16 | These definitions were written by Alan Agius , midknight41 , Brendan Forster , Mees van Dijk , Justin Rockwood .
17 | 
--------------------------------------------------------------------------------
/node_modules/@types/fs-extra/package.json:
--------------------------------------------------------------------------------
 1 | {
 2 |     "name": "@types/fs-extra",
 3 |     "version": "5.0.2",
 4 |     "description": "TypeScript definitions for fs-extra",
 5 |     "license": "MIT",
 6 |     "contributors": [
 7 |         {
 8 |             "name": "Alan Agius",
 9 |             "url": "https://github.com/alan-agius4",
10 |             "githubUsername": "alan-agius4"
11 |         },
12 |         {
13 |             "name": "midknight41",
14 |             "url": "https://github.com/midknight41",
15 |             "githubUsername": "midknight41"
16 |         },
17 |         {
18 |             "name": "Brendan Forster",
19 |             "url": "https://github.com/shiftkey",
20 |             "githubUsername": "shiftkey"
21 |         },
22 |         {
23 |             "name": "Mees van Dijk",
24 |             "url": "https://github.com/mees-",
25 |             "githubUsername": "mees-"
26 |         },
27 |         {
28 |             "name": "Justin Rockwood",
29 |             "url": "https://github.com/jrockwood",
30 |             "githubUsername": "jrockwood"
31 |         }
32 |     ],
33 |     "main": "",
34 |     "repository": {
35 |         "type": "git",
36 |         "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
37 |     },
38 |     "scripts": {},
39 |     "dependencies": {
40 |         "@types/node": "*"
41 |     },
42 |     "typesPublisherContentHash": "b2733d283c46366a0a9b1bc4deeec119ff9685362d4046289de118a3d6698be6",
43 |     "typeScriptVersion": "2.2"
44 | }
--------------------------------------------------------------------------------
/node_modules/@types/node/LICENSE:
--------------------------------------------------------------------------------
 1 |     MIT License
 2 | 
 3 |     Copyright (c) Microsoft Corporation. All rights reserved.
 4 | 
 5 |     Permission is hereby granted, free of charge, to any person obtaining a copy
 6 |     of this software and associated documentation files (the "Software"), to deal
 7 |     in the Software without restriction, including without limitation the rights
 8 |     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 9 |     copies of the Software, and to permit persons to whom the Software is
10 |     furnished to do so, subject to the following conditions:
11 | 
12 |     The above copyright notice and this permission notice shall be included in all
13 |     copies or substantial portions of the Software.
14 | 
15 |     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 |     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 |     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 |     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 |     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 |     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 |     SOFTWARE
22 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/buffer.d.ts:
--------------------------------------------------------------------------------
 1 | declare module "buffer" {
 2 |     export const INSPECT_MAX_BYTES: number;
 3 |     export const kMaxLength: number;
 4 |     export const kStringMaxLength: number;
 5 |     export const constants: {
 6 |         MAX_LENGTH: number;
 7 |         MAX_STRING_LENGTH: number;
 8 |     };
 9 |     const BuffType: typeof Buffer;
10 | 
11 |     export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
12 | 
13 |     export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
14 | 
15 |     export const SlowBuffer: {
16 |         /** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */
17 |         new(size: number): Buffer;
18 |         prototype: Buffer;
19 |     };
20 | 
21 |     export { BuffType as Buffer };
22 | }
23 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/console.d.ts:
--------------------------------------------------------------------------------
1 | declare module "console" {
2 |     export = console;
3 | }
4 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/domain.d.ts:
--------------------------------------------------------------------------------
 1 | declare module "domain" {
 2 |     import * as events from "events";
 3 | 
 4 |     class Domain extends events.EventEmitter implements NodeJS.Domain {
 5 |         run(fn: (...args: any[]) => T, ...args: any[]): T;
 6 |         add(emitter: events.EventEmitter | NodeJS.Timer): void;
 7 |         remove(emitter: events.EventEmitter | NodeJS.Timer): void;
 8 |         bind(cb: T): T;
 9 |         intercept(cb: T): T;
10 |         members: Array;
11 |         enter(): void;
12 |         exit(): void;
13 |     }
14 | 
15 |     function create(): Domain;
16 | }
17 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/events.d.ts:
--------------------------------------------------------------------------------
 1 | declare module "events" {
 2 |     class internal extends NodeJS.EventEmitter { }
 3 | 
 4 |     namespace internal {
 5 |         function once(emitter: EventEmitter, event: string | symbol): Promise;
 6 |          class EventEmitter extends internal {
 7 |             /** @deprecated since v4.0.0 */
 8 |             static listenerCount(emitter: EventEmitter, event: string | symbol): number;
 9 |             static defaultMaxListeners: number;
10 | 
11 |             addListener(event: string | symbol, listener: (...args: any[]) => void): this;
12 |             on(event: string | symbol, listener: (...args: any[]) => void): this;
13 |             once(event: string | symbol, listener: (...args: any[]) => void): this;
14 |             prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
15 |             prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
16 |             removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
17 |             off(event: string | symbol, listener: (...args: any[]) => void): this;
18 |             removeAllListeners(event?: string | symbol): this;
19 |             setMaxListeners(n: number): this;
20 |             getMaxListeners(): number;
21 |             listeners(event: string | symbol): Function[];
22 |             rawListeners(event: string | symbol): Function[];
23 |             emit(event: string | symbol, ...args: any[]): boolean;
24 |             eventNames(): Array;
25 |             listenerCount(type: string | symbol): number;
26 |         }
27 |     }
28 | 
29 |     export = internal;
30 | }
31 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/module.d.ts:
--------------------------------------------------------------------------------
1 | declare module "module" {
2 |     export = NodeJS.Module;
3 | }
4 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/process.d.ts:
--------------------------------------------------------------------------------
 1 | declare module "process" {
 2 |     import * as tty from "tty";
 3 | 
 4 |     global {
 5 |         namespace NodeJS {
 6 |             // this namespace merge is here because these are specifically used
 7 |             // as the type for process.stdin, process.stdout, and process.stderr.
 8 |             // they can't live in tty.d.ts because we need to disambiguate the imported name.
 9 |             interface ReadStream extends tty.ReadStream {}
10 |             interface WriteStream extends tty.WriteStream {}
11 |         }
12 |     }
13 | 
14 |     export = process;
15 | }
16 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/punycode.d.ts:
--------------------------------------------------------------------------------
 1 | declare module "punycode" {
 2 |     function decode(string: string): string;
 3 |     function encode(string: string): string;
 4 |     function toUnicode(domain: string): string;
 5 |     function toASCII(domain: string): string;
 6 |     const ucs2: ucs2;
 7 |     interface ucs2 {
 8 |         decode(string: string): number[];
 9 |         encode(codePoints: number[]): string;
10 |     }
11 |     const version: string;
12 | }
13 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/querystring.d.ts:
--------------------------------------------------------------------------------
 1 | declare module "querystring" {
 2 |     interface StringifyOptions {
 3 |         encodeURIComponent?: (str: string) => string;
 4 |     }
 5 | 
 6 |     interface ParseOptions {
 7 |         maxKeys?: number;
 8 |         decodeURIComponent?: (str: string) => string;
 9 |     }
10 | 
11 |     interface ParsedUrlQuery { [key: string]: string | string[]; }
12 | 
13 |     interface ParsedUrlQueryInput {
14 |         [key: string]:
15 |         // The value type here is a "poor man's `unknown`". When these types support TypeScript
16 |         // 3.0+, we can replace this with `unknown`.
17 |         {} | null | undefined;
18 |     }
19 | 
20 |     function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
21 |     function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
22 |     /**
23 |      * The querystring.encode() function is an alias for querystring.stringify().
24 |      */
25 |     const encode: typeof stringify;
26 |     /**
27 |      * The querystring.decode() function is an alias for querystring.parse().
28 |      */
29 |     const decode: typeof parse;
30 |     function escape(str: string): string;
31 |     function unescape(str: string): string;
32 | }
33 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/string_decoder.d.ts:
--------------------------------------------------------------------------------
1 | declare module "string_decoder" {
2 |     class StringDecoder {
3 |         constructor(encoding?: string);
4 |         write(buffer: Buffer): string;
5 |         end(buffer?: Buffer): string;
6 |     }
7 | }
8 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/timers.d.ts:
--------------------------------------------------------------------------------
 1 | declare module "timers" {
 2 |     function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
 3 |     namespace setTimeout {
 4 |         function __promisify__(ms: number): Promise;
 5 |         function __promisify__(ms: number, value: T): Promise;
 6 |     }
 7 |     function clearTimeout(timeoutId: NodeJS.Timeout): void;
 8 |     function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
 9 |     function clearInterval(intervalId: NodeJS.Timeout): void;
10 |     function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
11 |     namespace setImmediate {
12 |         function __promisify__(): Promise;
13 |         function __promisify__(value: T): Promise;
14 |     }
15 |     function clearImmediate(immediateId: NodeJS.Immediate): void;
16 | }
17 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/ts3.2/globals.d.ts:
--------------------------------------------------------------------------------
 1 | // tslint:disable-next-line:no-bad-reference
 2 | /// 
 3 | 
 4 | declare namespace NodeJS {
 5 |     interface HRTime {
 6 |         bigint(): bigint;
 7 |     }
 8 | }
 9 | 
10 | interface Buffer extends Uint8Array {
11 |     readBigUInt64BE(offset?: number): bigint;
12 |     readBigUInt64LE(offset?: number): bigint;
13 |     readBigInt64BE(offset?: number): bigint;
14 |     readBigInt64LE(offset?: number): bigint;
15 |     writeBigInt64BE(value: bigint, offset?: number): number;
16 |     writeBigInt64LE(value: bigint, offset?: number): number;
17 |     writeBigUInt64BE(value: bigint, offset?: number): number;
18 |     writeBigUInt64LE(value: bigint, offset?: number): number;
19 | }
20 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/ts3.2/index.d.ts:
--------------------------------------------------------------------------------
 1 | // NOTE: These definitions support NodeJS and TypeScript 3.2.
 2 | 
 3 | // NOTE: TypeScript version-specific augmentations can be found in the following paths:
 4 | //          - ~/base.d.ts         - Shared definitions common to all TypeScript versions
 5 | //          - ~/index.d.ts        - Definitions specific to TypeScript 2.1
 6 | //          - ~/ts3.2/index.d.ts  - Definitions specific to TypeScript 3.2
 7 | 
 8 | // Reference required types from the default lib:
 9 | /// 
10 | /// 
11 | /// 
12 | /// 
13 | 
14 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
15 | // tslint:disable-next-line:no-bad-reference
16 | /// 
17 | 
18 | // TypeScript 3.2-specific augmentations:
19 | /// 
20 | /// 
21 | 
--------------------------------------------------------------------------------
/node_modules/@types/node/ts3.2/util.d.ts:
--------------------------------------------------------------------------------
 1 | // tslint:disable-next-line:no-bad-reference
 2 | /// 
 3 | 
 4 | declare module "util" {
 5 |     namespace inspect {
 6 |         const custom: unique symbol;
 7 |     }
 8 |     namespace promisify {
 9 |         const custom: unique symbol;
10 |     }
11 |     namespace types {
12 |         function isBigInt64Array(value: any): value is BigInt64Array;
13 |         function isBigUint64Array(value: any): value is BigUint64Array;
14 |     }
15 | }
16 | 
--------------------------------------------------------------------------------
/node_modules/@types/ws/LICENSE:
--------------------------------------------------------------------------------
 1 |     MIT License
 2 | 
 3 |     Copyright (c) Microsoft Corporation.
 4 | 
 5 |     Permission is hereby granted, free of charge, to any person obtaining a copy
 6 |     of this software and associated documentation files (the "Software"), to deal
 7 |     in the Software without restriction, including without limitation the rights
 8 |     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 9 |     copies of the Software, and to permit persons to whom the Software is
10 |     furnished to do so, subject to the following conditions:
11 | 
12 |     The above copyright notice and this permission notice shall be included in all
13 |     copies or substantial portions of the Software.
14 | 
15 |     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 |     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 |     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 |     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 |     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 |     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 |     SOFTWARE
22 | 
--------------------------------------------------------------------------------
/node_modules/@types/ws/README.md:
--------------------------------------------------------------------------------
 1 | # Installation
 2 | > `npm install --save @types/ws`
 3 | 
 4 | # Summary
 5 | This package contains type definitions for ws (https://github.com/websockets/ws).
 6 | 
 7 | # Details
 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ws.
 9 | 
10 | ### Additional Details
11 |  * Last updated: Fri, 11 Mar 2022 23:31:44 GMT
12 |  * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13 |  * Global values: none
14 | 
15 | # Credits
16 | These definitions were written by [Paul Loyd](https://github.com/loyd), [Margus Lamp](https://github.com/mlamp), [Philippe D'Alva](https://github.com/TitaneBoy), [reduckted](https://github.com/reduckted), [teidesu](https://github.com/teidesu), [Bartosz Wojtkowiak](https://github.com/wojtkowiak), [Kyle Hensel](https://github.com/k-yle), and [Samuel Skeen](https://github.com/cwadrupldijjit).
17 | 
--------------------------------------------------------------------------------
/node_modules/@types/ws/index.d.mts:
--------------------------------------------------------------------------------
1 | export { createWebSocketStream, WebSocket, WebSocketServer, RawData, Data, CertMeta, VerifyClientCallbackSync, VerifyClientCallbackAsync, ClientOptions, PerMessageDeflateOptions, Event, ErrorEvent, CloseEvent, MessageEvent, EventListenerOptions, ServerOptions, AddressInfo } from "./index.js";
2 | import WebSocket = require("./index.js");
3 | export default WebSocket;
--------------------------------------------------------------------------------
/node_modules/anymatch/LICENSE:
--------------------------------------------------------------------------------
 1 | The ISC License
 2 | 
 3 | Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com)
 4 | 
 5 | Permission to use, copy, modify, and/or distribute this software for any
 6 | purpose with or without fee is hereby granted, provided that the above
 7 | copyright notice and this permission notice appear in all copies.
 8 | 
 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 | 
--------------------------------------------------------------------------------
/node_modules/anymatch/index.d.ts:
--------------------------------------------------------------------------------
 1 | type AnymatchFn = (testString: string) => boolean;
 2 | type AnymatchPattern = string|RegExp|AnymatchFn;
 3 | type AnymatchMatcher = AnymatchPattern|AnymatchPattern[]
 4 | type AnymatchTester = {
 5 |   (testString: string|any[], returnIndex: true): number;
 6 |   (testString: string|any[]): boolean;
 7 | }
 8 | 
 9 | type PicomatchOptions = {dot: boolean};
10 | 
11 | declare const anymatch: {
12 |   (matchers: AnymatchMatcher): AnymatchTester;
13 |   (matchers: AnymatchMatcher, testString: null, returnIndex: true | PicomatchOptions): AnymatchTester;
14 |   (matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number;
15 |   (matchers: AnymatchMatcher, testString: string|any[]): boolean;
16 | }
17 | 
18 | export {AnymatchMatcher as Matcher}
19 | export {AnymatchTester as Tester}
20 | export default anymatch
21 | 
--------------------------------------------------------------------------------
/node_modules/anymatch/package.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "anymatch",
 3 |   "version": "3.1.3",
 4 |   "description": "Matches strings against configurable strings, globs, regular expressions, and/or functions",
 5 |   "files": [
 6 |     "index.js",
 7 |     "index.d.ts"
 8 |   ],
 9 |   "dependencies": {
10 |     "normalize-path": "^3.0.0",
11 |     "picomatch": "^2.0.4"
12 |   },
13 |   "author": {
14 |     "name": "Elan Shanker",
15 |     "url": "https://github.com/es128"
16 |   },
17 |   "license": "ISC",
18 |   "homepage": "https://github.com/micromatch/anymatch",
19 |   "repository": {
20 |     "type": "git",
21 |     "url": "https://github.com/micromatch/anymatch"
22 |   },
23 |   "keywords": [
24 |     "match",
25 |     "any",
26 |     "string",
27 |     "file",
28 |     "fs",
29 |     "list",
30 |     "glob",
31 |     "regex",
32 |     "regexp",
33 |     "regular",
34 |     "expression",
35 |     "function"
36 |   ],
37 |   "scripts": {
38 |     "test": "nyc mocha",
39 |     "mocha": "mocha"
40 |   },
41 |   "devDependencies": {
42 |     "mocha": "^6.1.3",
43 |     "nyc": "^14.0.0"
44 |   },
45 |   "engines": {
46 |     "node": ">= 8"
47 |   }
48 | }
49 | 
--------------------------------------------------------------------------------
/node_modules/binary-extensions/binary-extensions.json.d.ts:
--------------------------------------------------------------------------------
1 | declare const binaryExtensionsJson: readonly string[];
2 | 
3 | export = binaryExtensionsJson;
4 | 
--------------------------------------------------------------------------------
/node_modules/binary-extensions/index.d.ts:
--------------------------------------------------------------------------------
 1 | /**
 2 | List of binary file extensions.
 3 | 
 4 | @example
 5 | ```
 6 | import binaryExtensions = require('binary-extensions');
 7 | 
 8 | console.log(binaryExtensions);
 9 | //=> ['3ds', '3g2', …]
10 | ```
11 | */
12 | declare const binaryExtensions: readonly string[];
13 | 
14 | export = binaryExtensions;
15 | 
--------------------------------------------------------------------------------
/node_modules/binary-extensions/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./binary-extensions.json');
2 | 
--------------------------------------------------------------------------------
/node_modules/binary-extensions/license:
--------------------------------------------------------------------------------
 1 | MIT License
 2 | 
 3 | Copyright (c) 2019 Sindre Sorhus  (https://sindresorhus.com), Paul Miller (https://paulmillr.com)
 4 | 
 5 | 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:
 6 | 
 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 8 | 
 9 | 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.
10 | 
--------------------------------------------------------------------------------
/node_modules/binary-extensions/readme.md:
--------------------------------------------------------------------------------
 1 | # binary-extensions [](https://travis-ci.org/sindresorhus/binary-extensions)
 2 | 
 3 | > List of binary file extensions
 4 | 
 5 | The list is just a [JSON file](binary-extensions.json) and can be used anywhere.
 6 | 
 7 | 
 8 | ## Install
 9 | 
10 | ```
11 | $ npm install binary-extensions
12 | ```
13 | 
14 | 
15 | ## Usage
16 | 
17 | ```js
18 | const binaryExtensions = require('binary-extensions');
19 | 
20 | console.log(binaryExtensions);
21 | //=> ['3ds', '3g2', …]
22 | ```
23 | 
24 | 
25 | ## Related
26 | 
27 | - [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file
28 | - [text-extensions](https://github.com/sindresorhus/text-extensions) - List of text file extensions
29 | 
30 | 
31 | ## License
32 | 
33 | MIT © [Sindre Sorhus](https://sindresorhus.com), [Paul Miller](https://paulmillr.com)
34 | 
--------------------------------------------------------------------------------
/node_modules/braces/LICENSE:
--------------------------------------------------------------------------------
 1 | The MIT License (MIT)
 2 | 
 3 | Copyright (c) 2014-2018, Jon Schlinkert.
 4 | 
 5 | Permission is hereby granted, free of charge, to any person obtaining a copy
 6 | of this software and associated documentation files (the "Software"), to deal
 7 | in the Software without restriction, including without limitation the rights
 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 | 
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 | 
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 | 
--------------------------------------------------------------------------------
/node_modules/braces/lib/stringify.js:
--------------------------------------------------------------------------------
 1 | 'use strict';
 2 | 
 3 | const utils = require('./utils');
 4 | 
 5 | module.exports = (ast, options = {}) => {
 6 |   let stringify = (node, parent = {}) => {
 7 |     let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
 8 |     let invalidNode = node.invalid === true && options.escapeInvalid === true;
 9 |     let output = '';
10 | 
11 |     if (node.value) {
12 |       if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
13 |         return '\\' + node.value;
14 |       }
15 |       return node.value;
16 |     }
17 | 
18 |     if (node.value) {
19 |       return node.value;
20 |     }
21 | 
22 |     if (node.nodes) {
23 |       for (let child of node.nodes) {
24 |         output += stringify(child);
25 |       }
26 |     }
27 |     return output;
28 |   };
29 | 
30 |   return stringify(ast);
31 | };
32 | 
33 | 
--------------------------------------------------------------------------------
/node_modules/chokidar/LICENSE:
--------------------------------------------------------------------------------
 1 | The MIT License (MIT)
 2 | 
 3 | Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker
 4 | 
 5 | Permission is hereby granted, free of charge, to any person obtaining a copy
 6 | of this software and associated documentation files (the “Software”), to deal
 7 | in the Software without restriction, including without limitation the rights
 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 | 
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 | 
15 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 | 
--------------------------------------------------------------------------------
/node_modules/colors/LICENSE:
--------------------------------------------------------------------------------
 1 | MIT License
 2 | 
 3 | Original Library
 4 |   - Copyright (c) Marak Squires
 5 | 
 6 | Additional Functionality
 7 |  - Copyright (c) Sindre Sorhus  (sindresorhus.com)
 8 | 
 9 | Permission is hereby granted, free of charge, to any person obtaining a copy
10 | of this software and associated documentation files (the "Software"), to deal
11 | in the Software without restriction, including without limitation the rights
12 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 | copies of the Software, and to permit persons to whom the Software is
14 | furnished to do so, subject to the following conditions:
15 | 
16 | The above copyright notice and this permission notice shall be included in
17 | all copies or substantial portions of the Software.
18 | 
19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 | THE SOFTWARE.
26 | 
--------------------------------------------------------------------------------
/node_modules/colors/lib/index.js:
--------------------------------------------------------------------------------
 1 | var colors = require('./colors');
 2 | module['exports'] = colors;
 3 | 
 4 | // Remark: By default, colors will add style properties to String.prototype.
 5 | //
 6 | // If you don't wish to extend String.prototype, you can do this instead and
 7 | // native String will not be touched:
 8 | //
 9 | //   var colors = require('colors/safe);
10 | //   colors.red("foo")
11 | //
12 | //
13 | require('./extendStringPrototype')();
14 | 
--------------------------------------------------------------------------------
/node_modules/colors/lib/maps/america.js:
--------------------------------------------------------------------------------
 1 | var colors = require('../colors');
 2 | 
 3 | module['exports'] = (function() {
 4 |   return function(letter, i, exploded) {
 5 |     if (letter === ' ') return letter;
 6 |     switch (i%3) {
 7 |       case 0: return colors.red(letter);
 8 |       case 1: return colors.white(letter);
 9 |       case 2: return colors.blue(letter);
10 |     }
11 |   };
12 | })();
13 | 
--------------------------------------------------------------------------------
/node_modules/colors/lib/maps/rainbow.js:
--------------------------------------------------------------------------------
 1 | var colors = require('../colors');
 2 | 
 3 | module['exports'] = (function() {
 4 |   // RoY G BiV
 5 |   var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta'];
 6 |   return function(letter, i, exploded) {
 7 |     if (letter === ' ') {
 8 |       return letter;
 9 |     } else {
10 |       return colors[rainbowColors[i++ % rainbowColors.length]](letter);
11 |     }
12 |   };
13 | })();
14 | 
15 | 
--------------------------------------------------------------------------------
/node_modules/colors/lib/maps/random.js:
--------------------------------------------------------------------------------
 1 | var colors = require('../colors');
 2 | 
 3 | module['exports'] = (function() {
 4 |   var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green',
 5 |     'blue', 'white', 'cyan', 'magenta'];
 6 |   return function(letter, i, exploded) {
 7 |     return letter === ' ' ? letter :
 8 |       colors[
 9 |         available[Math.round(Math.random() * (available.length - 2))]
10 |       ](letter);
11 |   };
12 | })();
13 | 
--------------------------------------------------------------------------------
/node_modules/colors/lib/maps/zebra.js:
--------------------------------------------------------------------------------
1 | var colors = require('../colors');
2 | 
3 | module['exports'] = function(letter, i, exploded) {
4 |   return i % 2 === 0 ? letter : colors.inverse(letter);
5 | };
6 | 
--------------------------------------------------------------------------------
/node_modules/colors/lib/system/has-flag.js:
--------------------------------------------------------------------------------
 1 | /*
 2 | MIT License
 3 | 
 4 | Copyright (c) Sindre Sorhus  (sindresorhus.com)
 5 | 
 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
 7 | this software and associated documentation files (the "Software"), to deal in
 8 | the Software without restriction, including without limitation the rights to
 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 | 
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 | 
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.
23 | */
24 | 
25 | 'use strict';
26 | 
27 | module.exports = function(flag, argv) {
28 |   argv = argv || process.argv;
29 | 
30 |   var terminatorPos = argv.indexOf('--');
31 |   var prefix = /^-{1,2}/.test(flag) ? '' : '--';
32 |   var pos = argv.indexOf(prefix + flag);
33 | 
34 |   return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
35 | };
36 | 
--------------------------------------------------------------------------------
/node_modules/colors/safe.js:
--------------------------------------------------------------------------------
 1 | //
 2 | // Remark: Requiring this file will use the "safe" colors API,
 3 | // which will not touch String.prototype.
 4 | //
 5 | //   var colors = require('colors/safe');
 6 | //   colors.red("foo")
 7 | //
 8 | //
 9 | var colors = require('./lib/colors');
10 | module['exports'] = colors;
11 | 
--------------------------------------------------------------------------------
/node_modules/colors/themes/generic-logging.js:
--------------------------------------------------------------------------------
 1 | module['exports'] = {
 2 |   silly: 'rainbow',
 3 |   input: 'grey',
 4 |   verbose: 'cyan',
 5 |   prompt: 'grey',
 6 |   info: 'green',
 7 |   data: 'grey',
 8 |   help: 'cyan',
 9 |   warn: 'yellow',
10 |   debug: 'blue',
11 |   error: 'red',
12 | };
13 | 
--------------------------------------------------------------------------------
/node_modules/fill-range/LICENSE:
--------------------------------------------------------------------------------
 1 | The MIT License (MIT)
 2 | 
 3 | Copyright (c) 2014-present, Jon Schlinkert.
 4 | 
 5 | Permission is hereby granted, free of charge, to any person obtaining a copy
 6 | of this software and associated documentation files (the "Software"), to deal
 7 | in the Software without restriction, including without limitation the rights
 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 | 
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 | 
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/LICENSE:
--------------------------------------------------------------------------------
 1 | (The MIT License)
 2 | 
 3 | Copyright (c) 2011-2017 JP Richardson
 4 | 
 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
 6 | (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
 7 |  merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
 8 |  furnished to do so, subject to the following conditions:
 9 | 
10 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11 | 
12 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14 | OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
15 |  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/emptyDir-sync.md:
--------------------------------------------------------------------------------
 1 | # emptyDirSync(dir)
 2 | 
 3 | Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted.
 4 | 
 5 | **Alias:** `emptydirSync()`
 6 | 
 7 | - `dir` ``
 8 | 
 9 | ## Example:
10 | 
11 | ```js
12 | const fs = require('fs-extra')
13 | 
14 | // assume this directory has a lot of files and folders
15 | fs.emptyDirSync('/tmp/some/dir')
16 | ```
17 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/emptyDir.md:
--------------------------------------------------------------------------------
 1 | # emptyDir(dir, [callback])
 2 | 
 3 | Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted.
 4 | 
 5 | **Alias:** `emptydir()`
 6 | 
 7 | - `dir` ``
 8 | - `callback` ``
 9 | 
10 | ## Example:
11 | 
12 | ```js
13 | const fs = require('fs-extra')
14 | 
15 | // assume this directory has a lot of files and folders
16 | // With a callback:
17 | fs.emptyDir('/tmp/some/dir', err => {
18 |   if (err) return console.error(err)
19 | 
20 |   console.log('success!')
21 | })
22 | 
23 | // With Promises:
24 | fs.emptyDir('/tmp/some/dir')
25 | .then(() => {
26 |   console.log('success!')
27 | })
28 | .catch(err => {
29 |   console.error(err)
30 | })
31 | 
32 | // With async/await:
33 | async function example () {
34 |   try {
35 |     await fs.emptyDir('/tmp/some/dir')
36 |     console.log('success!')
37 |   } catch (err) {
38 |     console.error(err)
39 |   }
40 | }
41 | 
42 | example()
43 | ```
44 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/ensureDir-sync.md:
--------------------------------------------------------------------------------
 1 | # ensureDirSync(dir)
 2 | 
 3 | Ensures that the directory exists. If the directory structure does not exist, it is created. Like `mkdir -p`.
 4 | 
 5 | **Aliases:** `mkdirsSync()`, `mkdirpSync()`
 6 | 
 7 | - `dir` ``
 8 | 
 9 | ## Example:
10 | 
11 | ```js
12 | const fs = require('fs-extra')
13 | 
14 | const dir = '/tmp/this/path/does/not/exist'
15 | fs.ensureDirSync(dir)
16 | // dir has now been created, including the directory it is to be placed in
17 | ```
18 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/ensureDir.md:
--------------------------------------------------------------------------------
 1 | # ensureDir(dir, [callback])
 2 | 
 3 | Ensures that the directory exists. If the directory structure does not exist, it is created. Like `mkdir -p`.
 4 | 
 5 | **Aliases:** `mkdirs()`, `mkdirp()`
 6 | 
 7 | - `dir` ``
 8 | - `callback` ``
 9 | 
10 | ## Example:
11 | 
12 | ```js
13 | const fs = require('fs-extra')
14 | 
15 | const dir = '/tmp/this/path/does/not/exist'
16 | 
17 | // With a callback:
18 | fs.ensureDir(dir, err => {
19 |   console.log(err) // => null
20 |   // dir has now been created, including the directory it is to be placed in
21 | })
22 | 
23 | // With Promises:
24 | fs.ensureDir(dir)
25 | .then(() => {
26 |   console.log('success!')
27 | })
28 | .catch(err => {
29 |   console.error(err)
30 | })
31 | 
32 | // With async/await:
33 | async function example (directory) {
34 |   try {
35 |     await fs.ensureDir(directory)
36 |     console.log('success!')
37 |   } catch (err) {
38 |     console.error(err)
39 |   }
40 | }
41 | 
42 | example(dir)
43 | ```
44 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/ensureFile-sync.md:
--------------------------------------------------------------------------------
 1 | # ensureFileSync(file)
 2 | 
 3 | Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is **NOT MODIFIED**.
 4 | 
 5 | **Alias:** `createFileSync()`
 6 | 
 7 | - `file` ``
 8 | 
 9 | ## Example:
10 | 
11 | ```js
12 | const fs = require('fs-extra')
13 | 
14 | const file = '/tmp/this/path/does/not/exist/file.txt'
15 | fs.ensureFileSync(file)
16 | // file has now been created, including the directory it is to be placed in
17 | ```
18 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/ensureFile.md:
--------------------------------------------------------------------------------
 1 | # ensureFile(file, [callback])
 2 | 
 3 | Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is **NOT MODIFIED**.
 4 | 
 5 | **Alias:** `createFile()`
 6 | 
 7 | - `file` ``
 8 | - `callback` ``
 9 | 
10 | ## Example:
11 | 
12 | ```js
13 | const fs = require('fs-extra')
14 | 
15 | const file = '/tmp/this/path/does/not/exist/file.txt'
16 | 
17 | // With a callback:
18 | fs.ensureFile(file, err => {
19 |   console.log(err) // => null
20 |   // file has now been created, including the directory it is to be placed in
21 | })
22 | 
23 | // With Promises:
24 | fs.ensureFile(file)
25 | .then(() => {
26 |   console.log('success!')
27 | })
28 | .catch(err => {
29 |   console.error(err)
30 | })
31 | 
32 | // With async/await:
33 | async function example (f) {
34 |   try {
35 |     await fs.ensureFile(f)
36 |     console.log('success!')
37 |   } catch (err) {
38 |     console.error(err)
39 |   }
40 | }
41 | 
42 | example(file)
43 | ```
44 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/ensureLink-sync.md:
--------------------------------------------------------------------------------
 1 | # ensureLinkSync(srcpath, dstpath)
 2 | 
 3 | Ensures that the link exists. If the directory structure does not exist, it is created.
 4 | 
 5 | - `srcpath` ``
 6 | - `dstpath` ``
 7 | 
 8 | ## Example:
 9 | 
10 | ```js
11 | const fs = require('fs-extra')
12 | 
13 | const srcpath = '/tmp/file.txt'
14 | const dstpath = '/tmp/this/path/does/not/exist/file.txt'
15 | fs.ensureLinkSync(srcpath, dstpath)
16 | // link has now been created, including the directory it is to be placed in
17 | ```
18 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/ensureLink.md:
--------------------------------------------------------------------------------
 1 | # ensureLink(srcpath, dstpath, [callback])
 2 | 
 3 | Ensures that the link exists. If the directory structure does not exist, it is created.
 4 | 
 5 | - `srcpath` ``
 6 | - `dstpath` ``
 7 | - `callback` ``
 8 | 
 9 | ## Example:
10 | 
11 | ```js
12 | const fs = require('fs-extra')
13 | 
14 | const srcpath = '/tmp/file.txt'
15 | const dstpath = '/tmp/this/path/does/not/exist/file.txt'
16 | 
17 | // With a callback:
18 | fs.ensureLink(srcpath, dstpath, err => {
19 |   console.log(err) // => null
20 |   // link has now been created, including the directory it is to be placed in
21 | })
22 | 
23 | // With Promises:
24 | fs.ensureLink(srcpath, dstpath)
25 | .then(() => {
26 |   console.log('success!')
27 | })
28 | .catch(err => {
29 |   console.error(err)
30 | })
31 | 
32 | // With async/await:
33 | async function example (src, dest) {
34 |   try {
35 |     await fs.ensureLink(src, dest)
36 |     console.log('success!')
37 |   } catch (err) {
38 |     console.error(err)
39 |   }
40 | }
41 | 
42 | example(srcpath, dstpath)
43 | ```
44 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/ensureSymlink-sync.md:
--------------------------------------------------------------------------------
 1 | # ensureSymlinkSync(srcpath, dstpath, [type])
 2 | 
 3 | Ensures that the symlink exists. If the directory structure does not exist, it is created.
 4 | 
 5 | - `srcpath` ``
 6 | - `dstpath` ``
 7 | - `type` ``
 8 | 
 9 | ## Example:
10 | 
11 | ```js
12 | const fs = require('fs-extra')
13 | 
14 | const srcpath = '/tmp/file.txt'
15 | const dstpath = '/tmp/this/path/does/not/exist/file.txt'
16 | fs.ensureSymlinkSync(srcpath, dstpath)
17 | // symlink has now been created, including the directory it is to be placed in
18 | ```
19 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/ensureSymlink.md:
--------------------------------------------------------------------------------
 1 | # ensureSymlink(srcpath, dstpath, [type, callback])
 2 | 
 3 | Ensures that the symlink exists. If the directory structure does not exist, it is created.
 4 | 
 5 | - `srcpath` ``
 6 | - `dstpath` ``
 7 | - `type` ``
 8 | - `callback` ``
 9 | 
10 | ## Example:
11 | 
12 | ```js
13 | const fs = require('fs-extra')
14 | 
15 | const srcpath = '/tmp/file.txt'
16 | const dstpath = '/tmp/this/path/does/not/exist/file.txt'
17 | 
18 | // With a callback:
19 | fs.ensureSymlink(srcpath, dstpath, err => {
20 |   console.log(err) // => null
21 |   // symlink has now been created, including the directory it is to be placed in
22 | })
23 | 
24 | // With Promises:
25 | fs.ensureSymlink(srcpath, dstpath)
26 | .then(() => {
27 |   console.log('success!')
28 | })
29 | .catch(err => {
30 |   console.error(err)
31 | })
32 | 
33 | // With async/await:
34 | async function example (src, dest) {
35 |   try {
36 |     await fs.ensureSymlink(src, dest)
37 |     console.log('success!')
38 |   } catch (err) {
39 |     console.error(err)
40 |   }
41 | }
42 | 
43 | example(srcpath, dstpath)
44 | ```
45 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/fs-read-write.md:
--------------------------------------------------------------------------------
 1 | # About `fs.read()` & `fs.write()`
 2 | 
 3 | [`fs.read()`](https://nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callback) & [`fs.write()`](https://nodejs.org/api/fs.html#fs_fs_write_fd_buffer_offset_length_position_callback) are different from other `fs` methods in that their callbacks are called with 3 arguments instead of the usual 2 arguments.
 4 | 
 5 | If you're using them with callbacks, they will behave as usual. However, their promise usage is a little different. `fs-extra` promisifies these methods like [`util.promisify()`](https://nodejs.org/api/util.html#util_util_promisify_original) (only available in Node 8+) does.
 6 | 
 7 | Here's the example promise usage:
 8 | 
 9 | ## `fs.read()`
10 | 
11 | ```js
12 | // With Promises:
13 | fs.read(fd, buffer, offset, length, position)
14 |   .then(results => {
15 |     console.log(results)
16 |     // { bytesRead: 20, buffer:  }
17 |   })
18 | 
19 | // With async/await:
20 | async function example () {
21 |   const { bytesRead, buffer } = await fs.read(fd, Buffer.alloc(length), offset, length, position)
22 | }
23 | ```
24 | 
25 | ## `fs.write()`
26 | 
27 | ```js
28 | // With Promises:
29 | fs.write(fd, buffer, offset, length, position)
30 |   .then(results => {
31 |     console.log(results)
32 |     // { bytesWritten: 20, buffer:  }
33 |   })
34 | 
35 | // With async/await:
36 | async function example () {
37 |   const { bytesWritten, buffer } = await fs.write(fd, Buffer.alloc(length), offset, length, position)
38 | }
39 | ```
40 | 
--------------------------------------------------------------------------------
/node_modules/fs-extra/docs/move-sync.md:
--------------------------------------------------------------------------------
 1 | # moveSync(src, dest, [options])
 2 | 
 3 | Moves a file or directory, even across devices.
 4 | 
 5 | - `src` ``
 6 | - `dest` ``
 7 | - `options` `