@dschz/load-script
Version:
Dynamically load scripts in the browser with caching.
90 lines (89 loc) • 2.21 kB
JSON
{
"name": "@dschz/load-script",
"version": "1.0.9",
"description": "Dynamically load scripts in the browser with caching.",
"type": "module",
"author": "Daniel Sanchez <dsanc89@icloud.com>",
"license": "MIT",
"homepage": "https://github.com/dsnchz/load-script#readme",
"bugs": {
"url": "https://github.com/dsnchz/load-script/issues"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"keywords": [
"async",
"async-script",
"script",
"script-loader",
"script-injector",
"script-loader",
"inject",
"inject-script",
"load",
"loader",
"load-script",
"dynamic-script",
"external-script",
"html-script",
"browser",
"javascript",
"typescript",
"utility",
"promise"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"browser": {},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"typesVersions": {},
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"dev": "vite",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"pkg:changeset": "changeset",
"pkg:version": "changeset version",
"pkg:publish": "bun run build && changeset publish",
"serve": "vite preview",
"start": "vite",
"test": "vitest run",
"test:cov": "vitest run --coverage",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@changesets/cli": "^2.29.3",
"@tailwindcss/vite": "^4.1.5",
"@types/bun": "^1.2.12",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.32.0",
"@vitest/coverage-istanbul": "^3.1.3",
"eslint": "^9.26.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-solid": "^0.14.5",
"globals": "^16.1.0",
"jiti": "^2.4.2",
"jsdom": "^26.1.0",
"prettier": "^3.5.3",
"tailwindcss": "^4.1.5",
"tsup": "^8.4.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.32.0",
"vite": "^6.3.5",
"vite-plugin-solid": "^2.11.6",
"vitest": "^3.1.3"
}
}