{
  "_id": "load-script",
  "maintainers": [
    {
      "name": "eldar",
      "email": "eldargab@gmail.com"
    },
    {
      "name": "rauchg",
      "email": "rauchg@gmail.com"
    },
    {
      "name": "defunctzombie",
      "email": "shtylman@gmail.com"
    }
  ],
  "keywords": [
    "browser",
    "script",
    "load"
  ],
  "dist-tags": {
    "latest": "2.0.0"
  },
  "_rev": "28-f8bbee5926c7edef6338cac66a489c38",
  "description": "Dynamic script loading for browser",
  "readme": "# load-script\n\nDynamic script loading.\n\n## Installation\n\nvia component\n\n```\n$ component install eldargab/load-script\n```\n\nvia npm\n\n```\n$ npm install load-script\n```\n\n## API\n`load-script` appends a `script` node to the `<head>` element in the dom.\n\n`require('load-script')` returns a function of the following interface:  `function(url[, opts][, cb]) {}`\n\n### url\nAny url that you would like to load.  May be absolute or relative.\n\n### [, opts]\nA map of options.  Here are the currently supported options:\n\n* `async` - A boolean value used for `script.async`.  By default this is `true`.\n* `attrs` - A map of attributes to set on the `script` node before appending it to the DOM.  By default this is empty.\n* `charset` - A string value used for `script.charset`.  By default this is `utf8`.\n* `text` - A string of text to append to the `script` node before it is appended to the DOM.  By default this is empty.\n* `type` - A string used for `script.type`.  By default this is `text/javascript`.\n\n### [, cb]\nA callback function of the following interface: `function(err, script) {}` where `err` is an error if any occurred and `script` is the `script` node that was appended to the DOM.\n\n## Example Usage\n\n```javascript\nvar load = require('load-script')\n\nload('foo.js', function (err, script) {\n  if (err) {\n    // print useful message\n  }\n  else {\n    console.log(script.src);// Prints 'foo'.js'\n    // use script\n    // note that in IE8 and below loading error wouldn't be reported\n  }\n})\n```\n\n## License\n\nMIT\n",
  "repository": {
    "type": "git",
    "url": "git://github.com/eldargab/load-script.git"
  },
  "users": {
    "wenbing": true,
    "bassettsj": true,
    "jovinbm": true,
    "niubenjs": true,
    "actionwolf": true,
    "wen911119": true,
    "sternelee": true,
    "zuojiang": true,
    "flumpus-dev": true
  },
  "bugs": {
    "url": "https://github.com/eldargab/load-script/issues"
  },
  "license": "MIT",
  "versions": {
    "0.0.2": {
      "name": "load-script",
      "description": "Dynamic script loading",
      "version": "0.0.2",
      "keywords": [
        "script",
        "load"
      ],
      "license": "MIT",
      "component": {
        "scripts": {
          "load-script/index.js": "index.js"
        }
      },
      "_id": "load-script@0.0.2",
      "dist": {
        "shasum": "81d771718ac6c56e4f7733178550ab29f972c201",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/load-script/-/load-script-0.0.2.tgz",
        "integrity": "sha512-Fu2LGaVXbMGHwlXOontefJMWreoc90KV9ruSfl2yZQg32qT7b9KsqatHveNMTrci65a4Qe8eqa7G8iiTj4a/wQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIFT4wlaH+wSlWLvIhR3OeU084DTV8s2X5eY6/UV7tELLAiAMutcp4lzKWa13PTS9X2JYsZ/cTY9HXv2MUMjoyS3a0Q=="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.2.18",
      "_npmUser": {
        "name": "rauchg",
        "email": "rauchg@gmail.com"
      },
      "maintainers": [
        {
          "name": "rauchg",
          "email": "rauchg@gmail.com"
        }
      ],
      "directories": {}
    },
    "0.0.3": {
      "name": "load-script",
      "description": "Dynamic script loading for browser",
      "version": "0.0.3",
      "keywords": [
        "browser",
        "script",
        "load"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/eldargab/load-script"
      },
      "license": "MIT",
      "component": {
        "scripts": {
          "load-script/index.js": "index.js"
        }
      },
      "bugs": {
        "url": "https://github.com/eldargab/load-script/issues"
      },
      "homepage": "https://github.com/eldargab/load-script",
      "_id": "load-script@0.0.3",
      "dist": {
        "shasum": "0663aa1e0bd770bf317e6d7af58e6cdf48de5774",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/load-script/-/load-script-0.0.3.tgz",
        "integrity": "sha512-RxqZR8ZtmGnguG8u30sONpqjKX6sYPGYkwhLIbek+nPfsx+4RADyxBJ7gwcLTmsX0FiDhibVVpHWvzzPrdP6YQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDQ8z1XBLtB8O3luf1yhIYikQ4oNiGqHaKNRT10mnr9cwIgCb8LWH8GcJdMtericBsv14oKiE+8nsg35nU6mUCZ/+k="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.3.21",
      "_npmUser": {
        "name": "shtylman",
        "email": "shtylman@gmail.com"
      },
      "maintainers": [
        {
          "name": "shtylman",
          "email": "shtylman@gmail.com"
        }
      ],
      "directories": {}
    },
    "0.0.4": {
      "name": "load-script",
      "description": "Dynamic script loading for browser",
      "version": "0.0.4",
      "keywords": [
        "browser",
        "script",
        "load"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/eldargab/load-script"
      },
      "license": "MIT",
      "component": {
        "scripts": {
          "load-script/index.js": "index.js"
        }
      },
      "bugs": {
        "url": "https://github.com/eldargab/load-script/issues"
      },
      "homepage": "https://github.com/eldargab/load-script",
      "_id": "load-script@0.0.4",
      "dist": {
        "shasum": "659bad9d950d660c09041784b542cd27a3f0af5d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/load-script/-/load-script-0.0.4.tgz",
        "integrity": "sha512-CdRurkt1INg4Ef3RJCri8ngFKAalW5nFatEnFAbobuZYn0x41IKQ+eizWxuw/qQUeJixl7xlKlh+7gvCY9wnEw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIGzyp7e/SRHo+PjRr2N4aiMWjjVb2XM1uvPyL7Lk4BeqAiEAwFD4y2UYp2ttAUUV1K7kPySL9C36L3nn5/VSPeSc2vA="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.3.21",
      "_npmUser": {
        "name": "shtylman",
        "email": "shtylman@gmail.com"
      },
      "maintainers": [
        {
          "name": "shtylman",
          "email": "shtylman@gmail.com"
        }
      ],
      "directories": {}
    },
    "0.0.5": {
      "name": "load-script",
      "description": "Dynamic script loading for browser",
      "version": "0.0.5",
      "keywords": [
        "browser",
        "script",
        "load"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/eldargab/load-script"
      },
      "scripts": {
        "test": "zuul -- test/index.js",
        "test-local": "zuul --local 9005 -- test/index.js"
      },
      "devDependencies": {
        "zuul": "~1.5.4"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/eldargab/load-script/issues"
      },
      "homepage": "https://github.com/eldargab/load-script",
      "_id": "load-script@0.0.5",
      "dist": {
        "shasum": "cbd54b27cd7309902b749640c70e996f4c643b63",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/load-script/-/load-script-0.0.5.tgz",
        "integrity": "sha512-HV30RRVjAvC6mbSe4eCIFeZ3T79uOHQE1/xuGKbuwLW1hVRJMjryecj7P9FaOdt+iTWQ9Jwdz8MgZhXunATmcA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIA1c4/kOaMsy/HoAnOXhl4KlRFrRcByer5/Gh6GBsOA5AiASawMcPIK5zDdb8CgaO4nJ7WXyENyB6M97uLRvb38ovA=="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.4.4",
      "_npmUser": {
        "name": "shtylman",
        "email": "shtylman@gmail.com"
      },
      "maintainers": [
        {
          "name": "rauchg",
          "email": "rauchg@gmail.com"
        },
        {
          "name": "shtylman",
          "email": "shtylman@gmail.com"
        }
      ],
      "directories": {}
    },
    "1.0.0": {
      "name": "load-script",
      "description": "Dynamic script loading for browser",
      "version": "1.0.0",
      "keywords": [
        "browser",
        "script",
        "load"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/eldargab/load-script"
      },
      "scripts": {
        "test": "zuul -- test/index.js",
        "test-local": "zuul --local 9005 -- test/index.js"
      },
      "devDependencies": {
        "zuul": "~2.1.0"
      },
      "license": "MIT",
      "gitHead": "09f6c1002c3bc48e8ab3027ad42260228b5dd0db",
      "bugs": {
        "url": "https://github.com/eldargab/load-script/issues"
      },
      "homepage": "https://github.com/eldargab/load-script",
      "_id": "load-script@1.0.0",
      "_shasum": "0491939e0bee5643ee494a7e3da3d2bac70c6ca4",
      "_from": ".",
      "_npmVersion": "2.6.1",
      "_nodeVersion": "0.10.35",
      "_npmUser": {
        "name": "shtylman",
        "email": "shtylman@gmail.com"
      },
      "maintainers": [
        {
          "name": "rauchg",
          "email": "rauchg@gmail.com"
        },
        {
          "name": "shtylman",
          "email": "shtylman@gmail.com"
        }
      ],
      "dist": {
        "shasum": "0491939e0bee5643ee494a7e3da3d2bac70c6ca4",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/load-script/-/load-script-1.0.0.tgz",
        "integrity": "sha512-kPEjMFtZvwL9TaZo0uZ2ml+Ye9HUMmPwbYRJ324qF9tqMejwykJ5ggTyvzmrbBeapCAbk98BSbTeovHEEP1uCA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIAnQDWUiTTPTbc9k96gnA1tG1M+9kMAE0hkmbegezNgOAiEAxoJm2Qm16rsJpzlXEPuM5tAmV5HxlwyYE1OxoajjxTc="
          }
        ]
      },
      "directories": {}
    },
    "2.0.0": {
      "name": "load-script",
      "description": "Dynamic script loading for browser",
      "version": "2.0.0",
      "types": "./index.d.ts",
      "keywords": [
        "browser",
        "script",
        "load"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/eldargab/load-script.git"
      },
      "scripts": {
        "test": "zuul -- test/index.js",
        "test-local": "zuul --local 9005 -- test/index.js"
      },
      "devDependencies": {
        "zuul": "~2.1.0"
      },
      "license": "MIT",
      "gitHead": "a282a018699997b89cf24ab0d1fe1f7b99dab612",
      "bugs": {
        "url": "https://github.com/eldargab/load-script/issues"
      },
      "homepage": "https://github.com/eldargab/load-script#readme",
      "_id": "load-script@2.0.0",
      "_nodeVersion": "14.18.0",
      "_npmVersion": "6.14.15",
      "dist": {
        "integrity": "sha512-km6cyoPW4rM22JMGb+SHUKPMZVDpUaMpMAKrv8UHWllIxc/qjgMGHD91nY+5hM+/NFs310OZ2pqQeJKs7HqWPA==",
        "shasum": "40821aaa59e9bbe7be2e28b6ab053e6f44330fa1",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/load-script/-/load-script-2.0.0.tgz",
        "fileCount": 10,
        "unpackedSize": 6647,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2yLKCRA9TVsSAnZWagAAepsQAImX84LzwqPmcGP/bfl7\nYDLm2jocR8mjmx1UBISjSTiTz9bFEbD+o57dBYd9Jyjk/id5HAK19FOyoPNU\nKux8TKyLLIez/+MC28QNmh/72Vt3zaILUN+R+r3HWV4arOgQc6E1YHsQQy5N\n/20R/ntJsQ08aL5GZW/aaO+7KejhiHirSl4LITywKxep9am5T3gDBIjuiH9v\nHvlyT9Gh1HbLtOiUal9rlpsucr9tulz+iH3vhFK9MulR71+osGDY3Dprpdzz\nYmZWdONP5eC/9+fVSoqTtMxvRvqIBkA7xxcQD/INiytMpyzi8icxjiE33uKX\nvsw/oFb39dykgX4W/72bgmliYenb3ffqmTgtF8r5TWT258BoyaIEpHQHJWoB\nKKGtWhiVD9B0y1Lr2jd5i06sf+FqOW/R8YIeV8bVB3ciLjON5t+kiihSbZkc\ngpULno/8IDsNEToU0Pm2EGXBjc7PpreASGHqOQ1UyW9QWAi6JJ/86Lwjyn2z\nCpxa1Q7NQ4R8M+HHxIhYpWJfQCx1CU7E0MHw6KAZcIjpkw9WMwIfM2lRXpT+\nVmI/lWQ5AqPh101E9BhfzbGUUliRYf+MxS2L+XJizKZLkz6NDGrTGAL5XrYv\nVACij6/imSX6wC4vC+OGc+I5OxDX5BW3QNd3FwFIKofYv04/zkrhjPpMgVi/\nep1U\r\n=e0lB\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQD8yQ953ro95+MqsPNa33dN86tj6KWPp3mKUIeJTnQ7bQIgFi+yd+6BHecr3ciycYAsX1qqtwe+OsMfSyrvdAdNVVs="
          }
        ]
      },
      "_npmUser": {
        "name": "eldar",
        "email": "eldargab@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "eldar",
          "email": "eldargab@gmail.com"
        },
        {
          "name": "rauchg",
          "email": "rauchg@gmail.com"
        },
        {
          "name": "defunctzombie",
          "email": "shtylman@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/load-script_2.0.0_1633552535503_0.963853819115956"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "load-script",
  "time": {
    "modified": "2026-06-05T22:04:54.509Z",
    "created": "2013-05-29T00:08:47.023Z",
    "0.0.2": "2013-05-29T00:08:48.399Z",
    "0.0.3": "2013-12-28T16:17:27.176Z",
    "0.0.4": "2013-12-31T01:13:33.679Z",
    "0.0.5": "2014-03-21T01:44:28.017Z",
    "1.0.0": "2015-03-08T20:36:48.095Z",
    "2.0.0": "2021-10-06T20:35:35.646Z"
  },
  "readmeFilename": "Readme.md",
  "homepage": "https://github.com/eldargab/load-script#readme"
}