UNPKG

rehype-img-size

Version:

rehype plugin to set local image size properties to img tag

68 lines (67 loc) 2.06 kB
{ "name": "rehype-img-size", "version": "1.0.1", "description": "rehype plugin to set local image size properties to img tag", "license": "MIT", "keywords": [ "rehype", "rehype-plugin", "image", "size", "html" ], "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "type": "module", "repository": "ksoichiro/rehype-img-size", "bugs": "https://github.com/ksoichiro/rehype-img-size/issues", "author": { "name": "Soichiro Kashima", "email": "soichiro.kashima@gmail.com", "url": "https://github.com/ksoichiro" }, "main": "cjs/index.cjs", "exports": { "import": "./index.js", "require": "./cjs/index.cjs" }, "types": "./index.d.ts", "files": [ "index.js", "index.d.ts", "cjs/index.cjs" ], "devDependencies": { "@rollup/plugin-commonjs": "^21.0.1", "@rollup/plugin-node-resolve": "^13.1.3", "jest": "^27.3.1", "rehype-stringify": "^9.0.2", "remark-parse": "^10.0.0", "remark-rehype": "^10.0.1", "rollup": "^2.64.0", "to-vfile": "^7.2.2", "unified": "^10.1.0", "vfile-reporter": "^6.0.2" }, "dependencies": { "image-size": "^1.0.0", "unist-util-visit": "^4.1.0" }, "scripts": { "build:example": "(cd examples/cjs && npm i); (cd examples/esm && npm i); (cd examples/ts && npm i)", "pretest": "(npm run build) && (cd examples/cjs && npm run build --if-present); (cd examples/esm && npm run build --if-present); (cd examples/ts && npm run build --if-present)", "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage", "build": "rollup --config --file cjs/index.cjs" }, "jest": { "collectCoverageFrom": [ "*.js" ], "transform": {}, "testPathIgnorePatterns": [ "<rootDir>/node_modules/", "<rootDir>/cjs" ] } }