UNPKG

dominject

Version:

Inject scripts and styles into the DOM with duplicate prevention and completion callback support

276 lines (275 loc) 10.9 kB
{ "title": "DOM Inject", "name": "dominject", "version": "5.9.0", "license": "Artistic-2.0", "description": "Inject scripts and styles into the DOM with duplicate prevention and completion callback support", "homepage": "https://github.com/bevry/dominject", "funding": "https://bevry.me/fund", "repository": { "type": "git", "url": "git+https://github.com/bevry/dominject.git" }, "bugs": { "url": "https://github.com/bevry/dominject/issues" }, "keywords": [ "browser", "dom", "es2023", "esnext", "export-default", "inject", "module", "node", "typed", "types" ], "badges": { "list": [ "githubworkflow", "npmversion", "npmdownloads", "---", "githubsponsors", "thanksdev", "patreon", "liberapay", "buymeacoffee", "opencollective", "crypto", "paypal", "---", "discord", "twitch" ], "config": { "githubWorkflow": "bevry", "githubSponsorsUsername": "balupton", "thanksdevGithubUsername": "bevry", "buymeacoffeeUsername": "balupton", "cryptoURL": "https://bevry.me/crypto", "flattrUsername": "balupton", "liberapayUsername": "bevry", "opencollectiveUsername": "bevry", "patreonUsername": "bevry", "paypalURL": "https://bevry.me/paypal", "wishlistURL": "https://bevry.me/wishlist", "discordServerID": "1147436445783560193", "discordServerInvite": "nQuXddV7VP", "twitchUsername": "balupton", "githubUsername": "bevry", "githubRepository": "dominject", "githubSlug": "bevry/dominject", "npmPackageName": "dominject" } }, "author": "2013+ Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)", "authors": [ "2013+ Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom." ], "maintainers": [ "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom." ], "contributors": [ "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)" ], "funders": [ "TopBetta (https://topbetta.com.au)", "Wholesale Blank T-Shirts (https://wholesale-blank-tshirts.com.au)" ], "sponsors": [ "Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher", "Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.", "Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.", "Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)", "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)", "Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.", "Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast" ], "donors": [ "Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)", "Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)", "Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)", "Chad (https://opencollective.com/chad8)", "Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)", "dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)", "Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)", "entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)", "GitHub (https://github.com/about) (https://github.com/github)", "Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)", "Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)", "Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)", "Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)", "Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)", "Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)", "Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)", "Pleo (https://pleo.io) (https://github.com/pleo-io)", "Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)", "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)", "Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)", "Sentry (https://sentry.io) (https://github.com/getsentry)", "ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)", "Skunk Team (https://skunk.team) (https://github.com/skunkteam)", "Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)", "TopBetta (https://topbetta.com.au)", "Wholesale Blank T-Shirts (https://wholesale-blank-tshirts.com.au)", "WriterJohnBuck (https://github.com/WriterJohnBuck)" ], "engines": { "node": ">=4" }, "editions": [ { "description": "ESNext source code for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules", "directory": "source", "entry": "index.js", "tags": [ "source", "javascript", "esnext", "import" ], "engines": { "node": "12 || 14 || 16 || 18 || 20 || 21", "browsers": false } }, { "description": "ESNext compiled for web browsers with Import for modules", "directory": "edition-browsers", "entry": "index.js", "tags": [ "compiled", "javascript", "import" ], "engines": { "node": false, "browsers": "defaults" } }, { "description": "ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules", "directory": "edition-node-21", "entry": "index.js", "tags": [ "compiled", "javascript", "es2023", "require" ], "engines": { "node": "4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21", "browsers": false } } ], "type": "module", "main": "edition-node-21/index.js", "exports": { "node": { "import": "./source/index.js", "require": "./edition-node-21/index.js" }, "browser": { "import": "./edition-browsers/index.js" } }, "browser": "edition-browsers/index.js", "module": "edition-browsers/index.js", "devDependencies": { "@babel/cli": "^7.23.4", "@babel/core": "^7.23.7", "@babel/plugin-transform-object-rest-spread": "^7.23.4", "@babel/preset-env": "^7.23.7", "assert-helpers": "^11.12.0", "eslint": "^8.56.0", "eslint-config-bevry": "^5.5.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.2", "jsdoc": "^4.0.2", "kava": "^7.9.0", "prettier": "^3.1.1", "projectz": "^4.2.0", "valid-directory": "^4.9.0", "valid-module": "^2.6.0" }, "scripts": { "our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", "our:compile": "npm run our:compile:edition-browsers && npm run our:compile:edition-node-21", "our:compile:edition-browsers": "env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source", "our:compile:edition-node-21": "env BABEL_ENV=edition-node-21 babel --out-dir ./edition-node-21 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-21/package.json", "our:deploy": "printf '%s\n' 'no need for this project'", "our:meta": "npm run our:meta:docs && npm run our:meta:projectz", "our:meta:docs": "npm run our:meta:docs:jsdoc", "our:meta:docs:jsdoc": "rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version", "our:meta:projectz": "projectz --offline", "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push", "our:release:check-changelog": "cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)", "our:release:check-dirty": "git diff --exit-code", "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", "our:release:push": "git push origin && git push origin --tags", "our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"", "our:setup": "npm run our:setup:install", "our:setup:install": "npm install", "our:test": "npm run our:verify && npm test", "our:verify": "npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier", "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source", "our:verify:module": "valid-module", "our:verify:prettier": "prettier --write .", "test": "node ./edition-node-21/test.js" }, "babel": { "env": { "edition-browsers": { "sourceType": "module", "presets": [ [ "@babel/preset-env", { "targets": { "browsers": "defaults" }, "modules": false } ] ], "plugins": [ "@babel/plugin-transform-object-rest-spread" ] }, "edition-node-21": { "sourceType": "module", "presets": [ [ "@babel/preset-env", { "targets": { "node": "21" }, "modules": "commonjs" } ] ], "plugins": [ "@babel/plugin-transform-object-rest-spread" ] } } }, "boundation": { "dom": true }, "eslintConfig": { "extends": [ "bevry" ] }, "prettier": { "semi": false, "singleQuote": true, "trailingComma": "all", "endOfLine": "lf" } }