diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4cad4f5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,32 @@ +# Normalize line endings for our own source to LF (matches .editorconfig). +# Git auto-detects text vs binary; text files are stored as LF in the repo and +# checked out as LF in the working tree. +* text=auto eol=lf + +# --- Vendored third-party libraries: keep byte-for-byte (do not touch EOLs) --- +video-url-parser/bs/** -text +video-url-parser/js/jquery-3.4.1.min.js -text +video-url-parser/js/jquery-ui.js -text +video-url-parser/js/MD5.js -text +video-url-parser/js/m_inc.js -text +video-url-parser/css/jquery-ui.css -text +*.min.js -text +*.min.css -text + +# --- Captured HTML test fixtures: data files, LF-normalized but exempt from +# whitespace linting (their internal indentation mirrors real-world pages) --- +video-url-parser/test/data/** -whitespace + +# --- Build output (also gitignored) --- +video-url-parser/dist/** -text + +# --- Binary assets (no EOL handling, no text diff) --- +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.woff binary +*.woff2 binary +*.ttf binary +*.eot binary diff --git a/.gitignore b/.gitignore index 970c183..51ad6ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,17 @@ -*.zip -node_modules/ -.vscode/ - -# Test coverage -coverage/ -.nyc_output/ - -# Logs -*.log -npm-debug.log* - -# OS files -.DS_Store -Thumbs.db - +*.zip +node_modules/ +.vscode/ + +# Test coverage +coverage/ +.nyc_output/ + +# Logs +*.log +npm-debug.log* + +# OS files +.DS_Store +Thumbs.db + dist/ \ No newline at end of file diff --git a/README.md b/README.md index 688b07b..0ecee92 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,14 @@ websites. Built and maintained by [@justyy](https://justyy.com/). ## Features - One-click detection of downloadable video URLs on the current page. -- Site-specific parsers plus generic fallbacks (`og:video` meta tags, `