semantic-heading-hierarchy
Version:
A JavaScript library that automatically invisibly corrects improper heading hierarchies for better accessibility. Used for user or admin edited content where the developer doesn't have 100% direct control over the content.
74 lines (73 loc) • 2 kB
JSON
{
"name": "semantic-heading-hierarchy",
"version": "1.0.4",
"description": "A JavaScript library that automatically invisibly corrects improper heading hierarchies for better accessibility. Used for user or admin edited content where the developer doesn't have 100% direct control over the content.",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist",
"src"
],
"scripts": {
"build": "npm run build:types && npm run build:esm && npm run build:cjs",
"build:types": "tsc --emitDeclarationOnly",
"build:esm": "esbuild src/index.ts --bundle --format=esm --outfile=dist/index.js",
"build:cjs": "esbuild src/index.ts --bundle --format=cjs --outfile=dist/index.cjs",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:run": "vitest run",
"lint": "eslint src/",
"format": "prettier --write src/ test/"
},
"keywords": [
"heading",
"hierarchy",
"accessibility",
"a11y",
"seo",
"semantic",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"author": "Steve McNiven-Scott",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sitefinitysteve/semantic-heading-hierarchy.git"
},
"bugs": {
"url": "https://github.com/sitefinitysteve/semantic-heading-hierarchy/issues"
},
"homepage": "https://github.com/sitefinitysteve/semantic-heading-hierarchy#readme",
"directories": {
"test": "test"
},
"devDependencies": {
"@types/node": "^24.0.14",
"esbuild": "^0.25.6",
"eslint": "^9.31.0",
"html-validate": "^9.7.1",
"jsdom": "^26.1.0",
"prettier": "^3.6.2",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
}
}