mirror of
https://github.com/konstantinosgkilas/smart-paste.git
synced 2026-07-22 06:13:47 +00:00
Intercepts paste events and transforms clipboard content: - HTML to Markdown conversion via DOMParser-based converter - URL link title fetching with 5-second timeout - Tracking parameter stripping (utm_*, fbclid, gclid, etc.) - Amazon URL cleaning (/ref= removal) - Whitespace normalization - Code block, frontmatter, and image paste pass-through - Google Docs and Word style-based formatting support - ESLint setup with official obsidianmd plugin rules - 76 unit tests across 3 test suites
32 lines
825 B
JSON
32 lines
825 B
JSON
{
|
|
"name": "smart-paste",
|
|
"version": "0.1.0",
|
|
"description": "Automatically cleans and transforms clipboard content on paste.",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "node esbuild.config.mjs production",
|
|
"lint": "eslint \"main.ts\" \"src/**/*.ts\"",
|
|
"test": "jest --config jest.config.js"
|
|
},
|
|
"keywords": [
|
|
"obsidian",
|
|
"paste",
|
|
"markdown",
|
|
"clipboard"
|
|
],
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.12",
|
|
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
"@typescript-eslint/parser": "^8.57.2",
|
|
"esbuild": "^0.21.0",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-obsidianmd": "github:obsidianmd/eslint-plugin",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^30.3.0",
|
|
"obsidian": "^1.5.0",
|
|
"ts-jest": "^29.1.2",
|
|
"typescript": "^5.4.0"
|
|
}
|
|
}
|