element-crafter
Version:
A zero-dependency TypeScript library for creating HTML elements in both SSR and client-side environments
67 lines (66 loc) • 2.23 kB
JSON
{
"name": "element-crafter",
"version": "1.1.0",
"description": "A zero-dependency TypeScript library for creating HTML elements in both SSR and client-side environments",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist/**",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run build:prod",
"build:dev": "npm run clean && npm run build:cjs:dev && npm run build:types:dev",
"build:prod": "npm run clean && npm run build:cjs:prod && npm run build:types:prod",
"build:cjs:dev": "tsc --outDir dist --target es2018 --module commonjs --sourceMap true --removeComments false",
"build:cjs:prod": "tsc --outDir dist --target es2018 --module commonjs --sourceMap false --removeComments true",
"build:types:dev": "tsc --emitDeclarationOnly --outDir dist --declarationMap true",
"build:types:prod": "tsc --emitDeclarationOnly --outDir dist --declarationMap false",
"build:examples": "tsc --project tsconfig.examples.json",
"clean": "rm -rf dist dist-examples",
"dev": "tsc --watch",
"example:basic": "npm run build:examples && node dist-examples/examples/basic-usage.js",
"example:client": "npm run build:examples && node dist-examples/examples/client-side.js",
"verify": "npm run build && node verify.js",
"prepublishOnly": "npm run clean && npm run build",
"pack:dry": "npm pack --dry-run",
"size": "npm run build && npm pack --dry-run | cat"
},
"keywords": [
"html",
"builder",
"ssr",
"client-side",
"typescript",
"zero-dependency",
"dom",
"html-generation",
"universal",
"isomorphic"
],
"author": "Tolu Adegbehingbe",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/toluLikesToCode/element-crafter.git"
},
"homepage": "https://github.com/toluLikesToCode/element-crafter#readme",
"bugs": {
"url": "https://github.com/toluLikesToCode/element-crafter/issues"
},
"sideEffects": false,
"engines": {
"node": ">=14.0.0"
},
"devDependencies": {
"@types/node": "^24.2.0",
"typescript": "^5.9.2"
}
}