UNPKG

datocms-html-to-structured-text

Version:

Convert HTML (or a `hast` syntax tree) to a valid DatoCMS Structured Text `dast` document

68 lines (67 loc) 1.74 kB
{ "name": "datocms-html-to-structured-text", "version": "6.0.0", "description": "Convert HTML (or a `hast` syntax tree) to a valid DatoCMS Structured Text `dast` document", "keywords": [ "datocms", "structured-text", "dast" ], "author": "Giuseppe Gurgone", "homepage": "https://github.com/datocms/structured-text/tree/master/packages/html-to-structured-text#readme", "license": "MIT", "type": "module", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, "./preprocessors/google-docs": { "types": "./dist/preprocessors/google-docs.d.ts", "import": "./dist/preprocessors/google-docs.js" } }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "sideEffects": false, "engines": { "node": ">=18" }, "directories": { "lib": "dist", "test": "__tests__" }, "files": [ "dist", "src" ], "repository": { "type": "git", "url": "git+https://github.com/datocms/structured-text.git" }, "scripts": { "build": "tsc", "prebuild": "rimraf dist" }, "bugs": { "url": "https://github.com/datocms/structured-text/issues" }, "dependencies": { "@types/hast": "^3.0.4", "datocms-structured-text-utils": "^6.0.0", "hast-util-from-dom": "^5.0.1", "hast-util-from-parse5": "^8.0.3", "hast-util-has-property": "^3.0.0", "hast-util-is-element": "^3.0.0", "hast-util-to-text": "^4.0.2", "rehype-minify-whitespace": "^6.0.2", "unist-util-visit": "^5.1.0" }, "devDependencies": { "parse5": "^8.0.1", "rimraf": "^5.0.0", "typescript": "^5.4.0", "unist-util-inspect": "^8.1.0" }, "gitHead": "cb042fe67ccba3ffe931396db8b4d9eacfeeb188" }