UNPKG

markdown-it-smiles

Version:

A markdown-it plugin for rendering SMILES (Simplified molecular input line entry specification) chemical structures

125 lines 4.29 kB
{ "name": "markdown-it-smiles", "version": "2.0.0", "description": "A markdown-it plugin for rendering SMILES (Simplified molecular input line entry specification) chemical structures", "homepage": "https://github.com/y1j2x34/markdown-it-smiles#readme", "bugs": { "url": "https://github.com/y1j2x34/markdown-it-smiles/issues" }, "repository": { "type": "git", "url": "git+https://github.com/y1j2x34/markdown-it-smiles.git" }, "license": "MIT", "author": "ChienHsinYang <y1j2x34@gmail.com>", "exports": { ".": { "node": { "require": { "types": "./dist/node/index.d.cts", "default": "./dist/node/index.js" }, "import": { "types": "./dist/node/index.d.ts", "default": "./dist/node/esm/index.js" } }, "browser": { "import": { "types": "./dist/browser/index.d.ts", "default": "./dist/browser/esm/index.js" } }, "default": { "require": { "types": "./dist/node/index.d.cts", "default": "./dist/node/index.js" }, "import": { "types": "./dist/node/index.d.ts", "default": "./dist/node/esm/index.js" } } } }, "main": "./dist/node/index.js", "module": "./dist/node/esm/index.js", "browser": "./dist/browser/esm/index.js", "types": "./dist/node/index.d.ts", "keywords": [ "markdown-it", "plugin", "smiles", "chemistry", "molecular", "structure", "chemical" ], "files": [ "dist", "CHANGELOG.md", "README.md" ], "scripts": { "build": "tsup", "build:watch": "tsup --watch", "commit": "commit", "dev": "npm-run-all build --parallel build:watch debug", "debug": "nodemon --watch dist --watch debug.js --exec 'node ./debug.js'", "debug:inspect": "nodemon --watch dist --watch debug.js --exec 'node --inspect-brk ./debug.js'", "lint": "eslint . -c ./.eslintrc.cjs", "format": "eslint . -c ./.eslintrc.cjs --fix", "prepare": "husky install", "test": "vitest ", "test:debug": "vitest --inspect --no-file-parallelism --project node", "test:ci": "vitest run --browser.headless --coverage ", "tsc": "tsc --noEmit", "typedoc": "typedoc ./src --out ./docs/api --hideGenerator --name ts-library", "postinstall": "cd node_modules/canvas && npm run install" }, "lint-staged": { "**/*{ts,tsx,json,js,cjs,jsx}": "npx prettier --write" }, "devDependencies": { "@babel/preset-env": "^7.23.9", "@commitlint/cli": "^18.6.0", "@commitlint/config-conventional": "^18.6.0", "@commitlint/prompt-cli": "^18.6.0", "@types/deasync": "^0.1.5", "@types/jsdom": "^21.1.7", "@types/markdown-it": "^14.1.2", "@types/node": "^22.15.29", "@typescript-eslint/eslint-plugin": "^6.19.1", "@typescript-eslint/parser": "^6.19.1", "@vitest/browser": "^3.2.3", "@vitest/coverage-istanbul": "^3.2.3", "@vitest/coverage-v8": "^3.2.3", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", "husky": "^8.0.3", "lint-staged": "^15.2.0", "markdown-it": "^14.1.0", "nodemon": "^3.1.10", "npm-run-all": "^4.1.5", "playwright": "^1.52.0", "prettier": "^3.2.4", "ts-node": "^10.9.2", "tsup": "^8.0.1", "typedoc": "^0.25.7", "typescript": "^5.3.3", "vite": "^5.0.12", "vite-tsconfig-paths": "^4.3.1", "vitest": "^3.2.3", "whatwg-fetch": "^3.6.20" }, "dependencies": { "canvas": "^3.1.0", "deasync": "^0.1.30", "jsdom": "^26.1.0", "json5": "^2.2.3", "markdown-it": "^14.0.0", "sharp": "^0.34.2", "smiles-drawer": "^2.1.7" } }