UNPKG

img-src-placeholder

Version:

Replace src=# in <img> tags with a data URL of a transparent 1 pixel image (CLI for package.json scripts)

86 lines (85 loc) 2.28 kB
{ "name": "img-src-placeholder", "version": "1.1.4", "description": "Replace src=# in <img> tags with a data URL of a transparent 1 pixel image (CLI for package.json scripts)", "license": "MIT", "type": "module", "module": "dist/img-src-placeholder.js", "types": "dist/img-src-placeholder.d.ts", "exports": "./dist/img-src-placeholder.js", "files": [ "dist" ], "bin": { "img-src-placeholder": "bin/cli.js" }, "repository": { "type": "git", "url": "git+https://github.com/center-key/img-src-placeholder.git" }, "homepage": "https://github.com/center-key/img-src-placeholder", "bugs": "https://github.com/center-key/img-src-placeholder/issues", "docs": "https://github.com/center-key/img-src-placeholder#readme", "author": "Center Key (https://centerkey.com)", "keywords": [ "base64", "cli", "data-url", "html", "img", "placeholder", "src" ], "jshintConfig": { "esversion": 11, "strict": "implied", "eqeqeq": true, "undef": true, "unused": true, "varstmt": true, "node": true, "mocha": true }, "runScriptsConfig": { "clean": [ "rimraf build dist spec/fixtures/target" ], "lint": [ "jshint . --exclude-path .gitignore", "eslint --max-warnings 0" ], "build": [ "tsc", "add-dist-header build dist" ] }, "scripts": { "pretest": "run-scripts clean lint build", "test": "mocha spec/*.spec.js", "posttest": "html-validator spec/fixtures" }, "dependencies": { "chalk": "~5.4", "cli-argv-util": "~1.2", "fancy-log": "~2.0", "istextorbinary": "~9.5", "replacer-util": "~1.3", "slash": "~5.1" }, "devDependencies": { "@eslint/js": "~9.21", "@types/fancy-log": "~2.0", "@types/node": "~22.13", "add-dist-header": "~1.4", "assert-deep-strict-equal": "~1.2", "copy-file-util": "~1.2", "eslint": "~9.21", "jshint": "~2.13", "mocha": "~11.1", "rimraf": "~6.0", "run-scripts-util": "~1.3", "typescript": "~5.8", "typescript-eslint": "~8.26", "w3c-html-validator": "~1.8" } }