UNPKG

rehype-citation

Version:

rehype plugin to add citation and bibliography from bibtex files

142 lines (141 loc) 4.15 kB
{ "name": "rehype-citation", "version": "2.3.2", "description": "rehype plugin to add citation and bibliography from bibtex files", "source": "index.js", "files": [ "dist" ], "main": "dist/node/rehype-citation.mjs", "module": "dist/node/rehype-citation.mjs", "browser": "dist/browser/rehype-citation.mjs", "types": "dist/node/index.d.ts", "type": "module", "exports": { ".": { "types": "./dist/node/index.d.ts", "node": "./dist/node/rehype-citation.mjs", "default": "./dist/browser/rehype-citation.mjs" }, "./browser/": { "default": "./dist/browser/" }, "./node/": { "default": "./dist/node/" } }, "typesVersions": { "*": { ".": [ "./dist/node/index" ], "browser/*": [ "./dist/browser/*" ], "node/*": [ "./dist/node/*" ] } }, "scripts": { "----note----": "Run bootstrap after install to update and inline the citation-js dependencies", "bootstrap": "node bootstrap.js", "build": "npm run build:node && npm run build:browser", "build:browser": "microbundle index.js src/cite.js src/generator.js --output dist/browser --format modern --define isNode=false --alias ./html-transform-node.js=./html-transform-browser.js", "build:node": "tsc -b && microbundle index.js src/cite.js src/generator.js --target node --output dist/node --format modern --define isNode=true", "tsc": "tsc --watch", "lint": "eslint .", "prettier": "prettier --write '*.js'", "vite": "vite", "vite:build": "vite build", "vite:preview": "vite preview", "test": "NODE_OPTIONS='--experimental-json-modules --experimental-specifier-resolution=node' uvu test", "e2e": "cd demo && playwright test" }, "repository": { "type": "git", "url": "git+https://github.com/timlrx/rehype-citation.git" }, "keywords": [ "rehype", "rehype-plugin", "citation", "bibliography", "bibtex", "mdx", "markdown" ], "author": "Timothy Lin <timothy0336@hotmail.com> (https://timlrx.com)", "license": "MIT", "bugs": { "url": "https://github.com/timlrx/rehype-citation/issues" }, "homepage": "https://github.com/timlrx/rehype-citation#readme", "dependencies": { "@citation-js/core": "^0.7.21", "@citation-js/date": "^0.5.1", "@citation-js/name": "^0.4.2", "@citation-js/plugin-bibjson": "^0.7.21", "@citation-js/plugin-bibtex": "^0.7.21", "@citation-js/plugin-csl": "^0.7.22", "citeproc": "^2.4.63", "cross-fetch": "^4.1.0", "hast-util-from-dom": "^5.0.1", "hast-util-from-parse5": "^8.0.3", "js-yaml": "^4.1.1", "parse5": "^8.0.0", "unified": "^11.0.5", "unist-util-visit": "^5.1.0" }, "devDependencies": { "@esbuild-plugins/node-globals-polyfill": "^0.2.3", "@esbuild-plugins/node-modules-polyfill": "^0.2.2", "@eslint/js": "^9.39.2", "@playwright/test": "^1.58.2", "@tailwindcss/postcss": "^4.1.18", "@tailwindcss/typography": "^0.5.19", "@types/node": "^25.2.2", "@vitejs/plugin-react": "^5.1.3", "autoprefixer": "^10.4.24", "dedent": "^1.7.1", "eslint": "^10.0.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-n": "^17.23.2", "glob": "^13.0.1", "husky": "^9.1.7", "lint-staged": "^16.2.7", "microbundle": "^0.15.1", "postcss": "^8.5.6", "prettier": "^3.8.1", "react": "^19.2.4", "react-dom": "^19.2.4", "rehype": "^13.0.2", "rehype-stringify": "^10.0.1", "remark-gfm": "^4.0.1", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.2", "rollup-plugin-polyfill-node": "^0.13.0", "rollup-plugin-visualizer": "^6.0.5", "tailwindcss": "^4.1.18", "typescript": "^5.9.3", "uvu": "^0.5.6", "vite": "^7.3.1" }, "prettier": { "printWidth": 100, "tabWidth": 2, "useTabs": false, "singleQuote": true, "bracketSpacing": true, "semi": false, "trailingComma": "es5" }, "lint-staged": { "*.+(js|jsx|ts|tsx)": [ "eslint --fix" ], "*.+(js|jsx|ts|tsx|json|css|md|mdx)": [ "prettier --write" ] } }