UNPKG

@lourd/load-script

Version:

Simple function for loading script tags in the browser asynchronously

61 lines (60 loc) 1.56 kB
{ "name": "@lourd/load-script", "version": "0.1.4", "description": "Simple function for loading script tags in the browser asynchronously", "repository": "https://github.com/lourd/js-load-script", "author": "Louis DeScioli (https://descioli.design)", "license": "MIT", "main": "dist/index.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "npm-run-all clean --parallel build:*", "build:module": "node ./scripts/build.js", "build:types": "tsc -p tsconfig.types.json", "clean": "rimraf dist", "test": "npm-run-all --parallel test:*", "test:logic": "jest", "test:types": "tsc", "develop": "npm-run-all --parallel \"test:* --watch\"" }, "keywords": [ "utility", "script", "load", "async", "promise", "browser", "script tag", "loader" ], "devDependencies": { "@babel/core": "^7.0.0", "@babel/plugin-transform-modules-commonjs": "^7.0.0", "@babel/preset-typescript": "^7.0.0", "@types/jest": "^24.0.13", "babel-jest": "^24.8.0", "gzip-size": "^5.1.1", "jest": "^24.8.0", "npm-run-all": "^4.1.2", "pretty-bytes": "^5.2.0", "rimraf": "^2.6.2", "rollup": "^1.12.3", "rollup-plugin-babel": "^4.0.0", "rollup-plugin-terser": "^4.0.4", "typescript": "^3.4.5" }, "jest": { "transform": { "^.+\\.(js|ts)$": "babel-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test))\\.(js|ts)$", "moduleFileExtensions": [ "js", "ts" ] } }