Skip to content

Build your personal knowledge base with Trilium Notes

First commit

SukantGujar9a3d218c6e93
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000..18944dc344
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.log
+.env
+node_modules
+dist
\ No newline at end of file
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 0000000000..fad7cb6270
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,5 @@
+{
+ "printWidth": 120,
+ "semi": true,
+ "bracketSpacing": true
+}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000000..cac0e10e68
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "editor.formatOnSave": true
+}
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000000..82515849ac
--- /dev/null
+++ b/package.json
@@ -0,0 +1,15 @@
+{
+ "name": "node-partial-stream",
+ "version": "0.1.0",
+ "main": "dist/index.js",
+ "repository": "ssh://[email protected]/SukantGujar/node-partial-stream",
+ "author": "sukantgujar <[email protected]>",
+ "license": "MIT",
+ "scripts": {
+ "build-watch": "npx tsc -w"
+ },
+ "devDependencies": {
+ "@types/node": "^11.10.5",
+ "typescript": "^3.3.3333"
+ }
+}
diff --git a/src/index.ts b/src/index.ts
new file mode 100644
index 0000000000..d9a8b89f64
--- /dev/null
+++ b/src/index.ts
@@ -0,0 +1,2 @@
+import { Request } from "node";
+export function handler(req: Request) {}
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000000..1616537696
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,21 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "esModuleInterop": true,
+ "target": "es6",
+ "noImplicitAny": true,
+ "moduleResolution": "node",
+ "sourceMap": true,
+ "outDir": "dist",
+ "baseUrl": ".",
+ "paths": {
+ "*": [
+ "node_modules/*",
+ "src/types/*"
+ ]
+ }
+ },
+ "include": [
+ "src/**/*"
+ ]
+}
\ No newline at end of file
diff --git a/yarn.lock b/yarn.lock
new file mode 100644
index 0000000000..a6e1de2d2d
--- /dev/null
+++ b/yarn.lock
@@ -0,0 +1,13 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+"@types/node@^11.10.5":
+ version "11.10.5"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-11.10.5.tgz#fbaca34086bdc118011e1f05c47688d432f2d571"
+ integrity sha512-DuIRlQbX4K+d5I+GMnv+UfnGh+ist0RdlvOp+JZ7ePJ6KQONCFQv/gKYSU1ZzbVdFSUCKZOltjmpFAGGv5MdYA==
+
+typescript@^3.3.3333:
+ version "3.3.3333"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3333.tgz#171b2c5af66c59e9431199117a3bcadc66fdcfd6"
+ integrity sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==