Skip to content

Commit e51d5a3

Browse files
authored
1-to-1 Conversion of LZ-String to Typescript (#174)
2 parents 7c1155c + acbcd24 commit e51d5a3

35 files changed

+8325
-4548
lines changed

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
dist/
3+
.prettierrc.js
4+
.eslintrc.js
5+
env.d.ts

.eslintrc

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"eslint-config-prettier"
6+
],
7+
"settings": {
8+
"import/resolver": {
9+
"node": {
10+
"paths": ["src"],
11+
"extensions": [".js", ".ts"]
12+
}
13+
}
14+
},
15+
"env": {
16+
"browser": true,
17+
"node": true
18+
},
19+
// TODO - Remove after TS release
20+
"ignorePatterns": ["main.ts", "base64-string.ts"]
21+
}

.gitignore

+346
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/vim,node,linux,macos,windows,intellij,visualstudiocode
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=vim,node,linux,macos,windows,intellij,visualstudiocode
3+
4+
### Intellij ###
5+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
6+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7+
8+
.idea/
9+
10+
# Gradle and Maven with auto-import
11+
# When using Gradle or Maven with auto-import, you should exclude module files,
12+
# since they will be recreated, and may cause churn. Uncomment if using
13+
# auto-import.
14+
# .idea/artifacts
15+
# .idea/compiler.xml
16+
# .idea/jarRepositories.xml
17+
# .idea/modules.xml
18+
# .idea/*.iml
19+
# .idea/modules
20+
# *.iml
21+
# *.ipr
22+
23+
# CMake
24+
cmake-build-*/
25+
26+
# Mongo Explorer plugin
27+
.idea/**/mongoSettings.xml
28+
29+
# File-based project format
30+
*.iws
31+
32+
# IntelliJ
33+
out/
34+
35+
# mpeltonen/sbt-idea plugin
36+
.idea_modules/
37+
38+
# JIRA plugin
39+
atlassian-ide-plugin.xml
40+
41+
# Cursive Clojure plugin
42+
.idea/replstate.xml
43+
44+
# SonarLint plugin
45+
.idea/sonarlint/
46+
47+
# Crashlytics plugin (for Android Studio and IntelliJ)
48+
com_crashlytics_export_strings.xml
49+
crashlytics.properties
50+
crashlytics-build.properties
51+
fabric.properties
52+
53+
# Editor-based Rest Client
54+
.idea/httpRequests
55+
56+
# Android studio 3.1+ serialized cache file
57+
.idea/caches/build_file_checksums.ser
58+
59+
### Intellij Patch ###
60+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
61+
62+
# *.iml
63+
# modules.xml
64+
# .idea/misc.xml
65+
# *.ipr
66+
67+
# Sonarlint plugin
68+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
69+
.idea/**/sonarlint/
70+
71+
# SonarQube Plugin
72+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
73+
.idea/**/sonarIssues.xml
74+
75+
# Markdown Navigator plugin
76+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
77+
.idea/**/markdown-navigator.xml
78+
.idea/**/markdown-navigator-enh.xml
79+
.idea/**/markdown-navigator/
80+
81+
# Cache file creation bug
82+
# See https://youtrack.jetbrains.com/issue/JBR-2257
83+
.idea/$CACHE_FILE$
84+
85+
# CodeStream plugin
86+
# https://plugins.jetbrains.com/plugin/12206-codestream
87+
.idea/codestream.xml
88+
89+
# Azure Toolkit for IntelliJ plugin
90+
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
91+
.idea/**/azureSettings.xml
92+
93+
### Linux ###
94+
*~
95+
96+
# temporary files which can be created if a process still has a handle open of a deleted file
97+
.fuse_hidden*
98+
99+
# KDE directory preferences
100+
.directory
101+
102+
# Linux trash folder which might appear on any partition or disk
103+
.Trash-*
104+
105+
# .nfs files are created when an open file is removed but is still being accessed
106+
.nfs*
107+
108+
### macOS ###
109+
# General
110+
.DS_Store
111+
.AppleDouble
112+
.LSOverride
113+
114+
# Icon must end with two \r
115+
Icon
116+
117+
118+
# Thumbnails
119+
._*
120+
121+
# Files that might appear in the root of a volume
122+
.DocumentRevisions-V100
123+
.fseventsd
124+
.Spotlight-V100
125+
.TemporaryItems
126+
.Trashes
127+
.VolumeIcon.icns
128+
.com.apple.timemachine.donotpresent
129+
130+
# Directories potentially created on remote AFP share
131+
.AppleDB
132+
.AppleDesktop
133+
Network Trash Folder
134+
Temporary Items
135+
.apdisk
136+
137+
### macOS Patch ###
138+
# iCloud generated files
139+
*.icloud
140+
141+
### Node ###
142+
# Logs
143+
logs
144+
*.log
145+
npm-debug.log*
146+
yarn-debug.log*
147+
yarn-error.log*
148+
lerna-debug.log*
149+
.pnpm-debug.log*
150+
151+
# Diagnostic reports (https://nodejs.org/api/report.html)
152+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
153+
154+
# Runtime data
155+
pids
156+
*.pid
157+
*.seed
158+
*.pid.lock
159+
160+
# Directory for instrumented libs generated by jscoverage/JSCover
161+
lib-cov
162+
163+
# Coverage directory used by tools like istanbul
164+
coverage
165+
*.lcov
166+
167+
# nyc test coverage
168+
.nyc_output
169+
170+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
171+
.grunt
172+
173+
# Bower dependency directory (https://bower.io/)
174+
bower_components
175+
176+
# node-waf configuration
177+
.lock-wscript
178+
179+
# Compiled binary addons (https://nodejs.org/api/addons.html)
180+
build/Release
181+
182+
# Dependency directories
183+
node_modules/
184+
jspm_packages/
185+
186+
# Snowpack dependency directory (https://snowpack.dev/)
187+
web_modules/
188+
189+
# TypeScript cache
190+
*.tsbuildinfo
191+
192+
# Optional npm cache directory
193+
.npm
194+
195+
# Optional eslint cache
196+
.eslintcache
197+
198+
# Optional stylelint cache
199+
.stylelintcache
200+
201+
# Microbundle cache
202+
.rpt2_cache/
203+
.rts2_cache_cjs/
204+
.rts2_cache_es/
205+
.rts2_cache_umd/
206+
207+
# Optional REPL history
208+
.node_repl_history
209+
210+
# Output of 'npm pack'
211+
*.tgz
212+
213+
# Yarn Integrity file
214+
.yarn-integrity
215+
216+
# dotenv environment variable files
217+
.env
218+
.env.development.local
219+
.env.test.local
220+
.env.production.local
221+
.env.local
222+
223+
# parcel-bundler cache (https://parceljs.org/)
224+
.cache
225+
.parcel-cache
226+
227+
# Next.js build output
228+
.next
229+
out
230+
231+
# Nuxt.js build / generate output
232+
.nuxt
233+
dist
234+
235+
# Gatsby files
236+
.cache/
237+
# Comment in the public line in if your project uses Gatsby and not Next.js
238+
# https://nextjs.org/blog/next-9-1#public-directory-support
239+
# public
240+
241+
# vuepress build output
242+
.vuepress/dist
243+
244+
# vuepress v2.x temp and cache directory
245+
.temp
246+
247+
# Docusaurus cache and generated files
248+
.docusaurus
249+
250+
# Serverless directories
251+
.serverless/
252+
253+
# FuseBox cache
254+
.fusebox/
255+
256+
# DynamoDB Local files
257+
.dynamodb/
258+
259+
# TernJS port file
260+
.tern-port
261+
262+
# Stores VSCode versions used for testing VSCode extensions
263+
.vscode-test
264+
265+
# yarn v2
266+
.yarn/cache
267+
.yarn/unplugged
268+
.yarn/build-state.yml
269+
.yarn/install-state.gz
270+
.pnp.*
271+
272+
### Node Patch ###
273+
# Serverless Webpack directories
274+
.webpack/
275+
276+
# Optional stylelint cache
277+
278+
# SvelteKit build / generate output
279+
.svelte-kit
280+
281+
### Vim ###
282+
# Swap
283+
[._]*.s[a-v][a-z]
284+
!*.svg # comment out if you don't need vector files
285+
[._]*.sw[a-p]
286+
[._]s[a-rt-v][a-z]
287+
[._]ss[a-gi-z]
288+
[._]sw[a-p]
289+
290+
# Session
291+
Session.vim
292+
Sessionx.vim
293+
294+
# Temporary
295+
.netrwhist
296+
# Auto-generated tag files
297+
tags
298+
# Persistent undo
299+
[._]*.un~
300+
301+
### VisualStudioCode ###
302+
.vscode/*
303+
!.vscode/settings.json
304+
!.vscode/tasks.json
305+
!.vscode/launch.json
306+
!.vscode/extensions.json
307+
!.vscode/*.code-snippets
308+
309+
# Local History for Visual Studio Code
310+
.history/
311+
312+
# Built Visual Studio Code Extensions
313+
*.vsix
314+
315+
### VisualStudioCode Patch ###
316+
# Ignore all local history of files
317+
.history
318+
.ionide
319+
320+
### Windows ###
321+
# Windows thumbnail cache files
322+
Thumbs.db
323+
Thumbs.db:encryptable
324+
ehthumbs.db
325+
ehthumbs_vista.db
326+
327+
# Dump file
328+
*.stackdump
329+
330+
# Folder config file
331+
[Dd]esktop.ini
332+
333+
# Recycle Bin used on file shares
334+
$RECYCLE.BIN/
335+
336+
# Windows Installer files
337+
*.cab
338+
*.msi
339+
*.msix
340+
*.msm
341+
*.msp
342+
343+
# Windows shortcuts
344+
*.lnk
345+
346+
# End of https://www.toptal.com/developers/gitignore/api/vim,node,linux,macos,windows,intellij,visualstudiocode

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tag-version-prefix=""
2+
save-prefix=""

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": false
6+
}

bin/bin.js

-13
This file was deleted.

0 commit comments

Comments
 (0)