{"versions":{"7.0.2":{"name":"@types/insert-module-globals","version":"7.0.2","description":"","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-module-globals","license":"MIT","contributors":[{"name":"Leonard Thieu","url":"https://github.com/leonard-thieu","githubUsername":"leonard-thieu"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/insert-module-globals"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"b1f08bdc911fc63e490d900cbcf50335ddda4c8a2d106c498f2d0c4a108c48bd","typeScriptVersion":"3.6","_id":"@types/insert-module-globals@7.0.2","dist":{"shasum":"0d44216a6489829897d7c8a97dbf8250444c95f8","size":2417,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/insert-module-globals/-/insert-module-globals-7.0.2.tgz"},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals_7.0.2_1625757248102_0.07613779666497855"},"_hasShrinkwrap":false,"publish_time":1625757248257,"_cnpm_publish_time":1625757248257},"7.0.1":{"name":"@types/insert-module-globals","version":"7.0.1","description":"","license":"MIT","contributors":[{"name":"Leonard Thieu","url":"https://github.com/leonard-thieu","githubUsername":"leonard-thieu"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"ad6ae6f7bd291458cffa25ee5d5e4f92f75e69872df1e8e56379cd79e1f31261","typeScriptVersion":"2.0","_id":"@types/insert-module-globals@7.0.1","dist":{"shasum":"234f9263f6b315088287e3597d7e98033804a031","size":2364,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/insert-module-globals/-/insert-module-globals-7.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals_7.0.1_1550084860129_0.9396742976674528"},"_hasShrinkwrap":false,"publish_time":1550084860305,"_cnpm_publish_time":1550084860305},"7.0.0":{"name":"@types/insert-module-globals","version":"7.0.0","description":"","license":"MIT","contributors":[{"name":"Leonard Thieu","url":"https://github.com/leonard-thieu"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"peerDependencies":{},"typesPublisherContentHash":"78ebbd111e15aa041229b03f46373134ae52e82c372d9b5f806d20de322d47f4","typeScriptVersion":"2.0","_id":"@types/insert-module-globals@7.0.0","dist":{"shasum":"8d158de4a6384e8daa13b3d63eebab6d5f67777d","size":2370,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/insert-module-globals/-/insert-module-globals-7.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals-7.0.0.tgz_1496296847543_0.5386738013476133"},"directories":{},"publish_time":1496296847666,"_hasShrinkwrap":false,"_cnpm_publish_time":1496296847666},"7.0.3":{"name":"@types/insert-module-globals","version":"7.0.3","description":"TypeScript definitions for insert-module-globals","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-module-globals","license":"MIT","contributors":[{"name":"Leonard Thieu","url":"https://github.com/leonard-thieu","githubUsername":"leonard-thieu"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/insert-module-globals"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"5b27a16196872ab7f9e4b71e5c2714e16f2f4ab1c67db8d920df359901d2803e","typeScriptVersion":"4.5","_id":"@types/insert-module-globals@7.0.3","dist":{"integrity":"sha512-r0YPGZiGjyPKNSLsp7h9hfMA93zQkKJuj/UlQ6XwEslsLbwa4sJEYaW55guWJ+mZteVqynq/+XuaKALY0i9iZg==","shasum":"b9bb8e6ac8b1a6bb81af2e38d4fe942850bb9e6d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/insert-module-globals/-/insert-module-globals-7.0.3.tgz","fileCount":5,"unpackedSize":5225,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJYqqm9HQlOBdmiZRQhpZq+4eLQ//qlM9j5jdJmDFu6AiA5mX0ADzPIwkmTX4AqbY5AR+ICGtIiekLI0TtiqKkgJw=="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals_7.0.3_1695740373878_0.6253542441729356"},"_hasShrinkwrap":false},"7.0.4":{"name":"@types/insert-module-globals","version":"7.0.4","description":"TypeScript definitions for insert-module-globals","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-module-globals","license":"MIT","contributors":[{"name":"Leonard Thieu","githubUsername":"leonard-thieu","url":"https://github.com/leonard-thieu"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/insert-module-globals"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"80fbf8eca8d7abc6cf3c9f98da78185faf511eeab84e96209e21e45b718f7067","typeScriptVersion":"4.5","_id":"@types/insert-module-globals@7.0.4","dist":{"integrity":"sha512-CadaR9P02MASnKH/4w78GtK2/uCwyw/K1pHC6zc0DlitwGDXDmIulYw4VeE6pn/DIkxAXC5XCyLIAY7CsfCLsA==","shasum":"f4f8f3ddacf673212c92bb1169f8e2196ed7a805","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/insert-module-globals/-/insert-module-globals-7.0.4.tgz","fileCount":5,"unpackedSize":7434,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwX/COTRBpm/28Fklzo9jbtTzwy5OwzJXYEKZOExkUBQIhAOPRSR2zNPtERPzpRGUldy5tg4R3LIsH3Tal25kTAeu8"}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals_7.0.4_1697606049109_0.37935558012512804"},"_hasShrinkwrap":false},"7.0.5":{"name":"@types/insert-module-globals","version":"7.0.5","description":"TypeScript definitions for insert-module-globals","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-module-globals","license":"MIT","contributors":[{"name":"Leonard Thieu","githubUsername":"leonard-thieu","url":"https://github.com/leonard-thieu"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/insert-module-globals"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"7f418e1de187481ecf6a0675c1e8a31a6dfd2b31b285a166251dc8b4e0b2bd6a","typeScriptVersion":"4.5","_id":"@types/insert-module-globals@7.0.5","dist":{"integrity":"sha512-stIOYdMg9UAGAaXQxvWrTC/FE8RqVSsJpr9guQmkO00W8OXIdu9LTC9SEinCW3jBq5273716GIyYcCNly718hQ==","shasum":"62e83a3632f21e01aecff60afe383b837c7f1589","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/insert-module-globals/-/insert-module-globals-7.0.5.tgz","fileCount":5,"unpackedSize":7434,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHo2cHEKbOs0unpYShlATWuDPirXL8eUWz4ZXdenAlu2AiAsjJ4dH8xGzhW6SPZdpWumXPpuWN2Z8IphpdYTRbOEBQ=="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals_7.0.5_1699343605130_0.3567325710927596"},"_hasShrinkwrap":false},"7.0.6":{"name":"@types/insert-module-globals","version":"7.0.6","license":"MIT","_id":"@types/insert-module-globals@7.0.6","maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"contributors":[{"url":"https://github.com/leonard-thieu","name":"Leonard Thieu","githubUsername":"leonard-thieu"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-module-globals","dist":{"shasum":"7411d96faff00702603550224402c1b81eafae8b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/insert-module-globals/-/insert-module-globals-7.0.6.tgz","fileCount":5,"integrity":"sha512-S4dJs2/L13/nP33kngrziFPbpDW/cBcxdaMzd4xObbHz55Vp7xygZS303N53Z2M2lxrG3Q584ls5NpbNs6gb6w==","signatures":[{"sig":"MEUCIAE3PNfGVub4FJ4QcVdSgHQeAjTcIAw7Z0AbNJ2d7rerAiEA0YGUk++Uw/ZhYA1sdBkBRKGbOmF8GvqbN6LZMI0KbkE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7464,"size":2467},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/insert-module-globals"},"description":"TypeScript definitions for insert-module-globals","directories":{},"dependencies":{"@types/node":"*"},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.2","_npmOperationalInternal":{"tmp":"tmp/insert-module-globals_7.0.6_1761279310331_0.3301561879677264","host":"s3://npm-registry-packages-npm-production"},"typesPublisherContentHash":"2a884600fd609c1cd4d7cfb3853d6b771cbc71659ca8763a2793194e32d75907","_cnpmcore_publish_time":"2025-10-24T04:15:10.533Z","publish_time":1761279310533,"_source_registry_name":"default"}},"dist-tags":{"latest":"7.0.6","ts2.0":"7.0.1","ts2.1":"7.0.1","ts2.2":"7.0.1","ts2.3":"7.0.1","ts2.4":"7.0.1","ts2.5":"7.0.1","ts2.6":"7.0.1","ts2.7":"7.0.1","ts2.8":"7.0.1","ts2.9":"7.0.1","ts3.0":"7.0.1","ts3.1":"7.0.1","ts3.2":"7.0.1","ts3.3":"7.0.1","ts3.4":"7.0.1","ts3.5":"7.0.1","ts3.6":"7.0.2","ts3.7":"7.0.2","ts3.8":"7.0.2","ts3.9":"7.0.2","ts4.0":"7.0.2","ts4.1":"7.0.2","ts4.2":"7.0.2","ts4.3":"7.0.2","ts4.4":"7.0.2","ts4.5":"7.0.5","ts4.6":"7.0.5","ts4.7":"7.0.5","ts4.8":"7.0.5","ts4.9":"7.0.5","ts5.0":"7.0.5","ts5.1":"7.0.5","ts5.2":"7.0.6","ts5.3":"7.0.6","ts5.4":"7.0.6","ts5.5":"7.0.6","ts5.6":"7.0.6","ts5.7":"7.0.6","ts5.8":"7.0.6","ts5.9":"7.0.6","ts6.0":"7.0.6"},"name":"@types/insert-module-globals","time":{"modified":"2025-10-24T04:15:24.489Z","created":"2022-01-26T22:22:39.504Z","7.0.2":"2021-07-08T15:14:08.257Z","7.0.1":"2019-02-13T19:07:40.305Z","7.0.0":"2017-06-01T06:00:47.666Z","7.0.3":"2023-09-26T14:59:34.053Z","7.0.4":"2023-10-18T05:14:09.287Z","7.0.5":"2023-11-07T07:53:25.395Z","7.0.6":"2025-10-24T04:15:10.533Z"},"readme":"# Installation\r\n> `npm install --save @types/insert-module-globals`\r\n\r\n# Summary\r\nThis package contains type definitions for insert-module-globals (https://github.com/browserify/insert-module-globals).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-module-globals.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-module-globals/index.d.ts)\r\n````ts\r\n/// <reference types=\"node\" />\n\nimport stream = require(\"stream\");\n\nexport = InsertModuleGlobals;\n\ninterface InsertModuleGlobals {\n    /**\n     * Return a transform stream inserter for the filename file that will accept a javascript file as input and\n     * will output the file with a closure around the contents as necessary to define extra builtins.\n     */\n    (file: string, opts?: InsertModuleGlobals.Options): stream.Transform;\n\n    /**\n     * Defaults\n     */\n    readonly vars: {\n        process(file: string): string;\n        global(): string;\n        \"Buffer.isBuffer\"(file: string): string;\n        Buffer(): string;\n        __filename(file: string, basedir: string): string;\n        __dirname(file: string, basedir: string): string;\n    };\n}\n\ndeclare const InsertModuleGlobals: InsertModuleGlobals;\n\ndeclare namespace InsertModuleGlobals {\n    interface Options {\n        /**\n         * When opts.always is true, wrap every file with all the global variables without parsing.\n         * This is handy because parsing the scope can take a long time, so you can prioritize fast builds over saving bytes in the final output.\n         * When opts.always is truthy but not true, avoid parsing but perform a quick test to determine if wrapping should be skipped.\n         */\n        always?: boolean | undefined;\n        /**\n         * Use opts.vars to override the default inserted variables, or set opts.vars[name] to undefined to not insert a variable which would otherwise be inserted.\n         *\n         * opts.vars properties with a . in their name will be executed instead of the parent object if ONLY that property is used.\n         * For example, \"Buffer.isBuffer\" will mask \"Buffer\" only when there is a Buffer.isBuffer() call in a file and no other references to Buffer.\n         */\n        vars?: VarsOption | undefined;\n        /**\n         * If opts.debug is true, an inline source map will be generated to compensate for the extra lines.\n         */\n        debug?: boolean | undefined;\n        basedir?: string | undefined;\n    }\n\n    interface VarsOption {\n        [name: string]: InsertFunction | undefined;\n    }\n\n    type InsertFunction = (file: string, basedir: string) => VariableConfig | string;\n\n    interface VariableConfig {\n        id: string;\n        source: string;\n        suffix?: string | undefined;\n    }\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Fri, 24 Oct 2025 04:02:41 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n\r\n# Credits\r\nThese definitions were written by [Leonard Thieu](https://github.com/leonard-thieu).","users":{}}