{"_id":"@types/insert-module-globals","_rev":"3751417","name":"@types/insert-module-globals","description":"TypeScript definitions for insert-module-globals","dist-tags":{"latest":"7.0.5","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.5","ts5.3":"7.0.5","ts5.4":"7.0.5","ts5.5":"7.0.5","ts5.6":"7.0.5","ts5.7":"7.0.5","ts5.8":"7.0.5","ts5.9":"7.0.5"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2025-03-04T06:13:59.000Z","created":"2017-06-01T06:00:47.666Z","7.0.5":"2023-11-07T07:53:25.395Z","7.0.4":"2023-10-18T05:14:09.287Z","7.0.3":"2023-09-26T14:59:34.053Z","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"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/insert-module-globals"},"versions":{"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":{"shasum":"62e83a3632f21e01aecff60afe383b837c7f1589","size":2454,"noattachment":false,"key":"/@types/insert-module-globals/-/@types/insert-module-globals-7.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/insert-module-globals/download/@types/insert-module-globals-7.0.5.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals_7.0.5_1699343605130_0.3567325710927596"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T07:53:25.395Z","publish_time":1699343605395,"_source_registry_name":"default","_cnpm_publish_time":1699343605395},"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":{"shasum":"f4f8f3ddacf673212c92bb1169f8e2196ed7a805","size":2460,"noattachment":false,"key":"/@types/insert-module-globals/-/@types/insert-module-globals-7.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/insert-module-globals/download/@types/insert-module-globals-7.0.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals_7.0.4_1697606049109_0.37935558012512804"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T05:14:09.287Z","publish_time":1697606049287,"_source_registry_name":"default","_cnpm_publish_time":1697606049287},"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":{"shasum":"b9bb8e6ac8b1a6bb81af2e38d4fe942850bb9e6d","size":2470,"noattachment":false,"key":"/@types/insert-module-globals/-/@types/insert-module-globals-7.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/insert-module-globals/download/@types/insert-module-globals-7.0.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/insert-module-globals_7.0.3_1695740373878_0.6253542441729356"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-26T14:59:34.053Z","publish_time":1695740374053,"_source_registry_name":"default","_cnpm_publish_time":1695740374053},"7.0.2":{"name":"@types/insert-module-globals","version":"7.0.2","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":"b1f08bdc911fc63e490d900cbcf50335ddda4c8a2d106c498f2d0c4a108c48bd","typeScriptVersion":"3.6","_id":"@types/insert-module-globals@7.0.2","dist":{"shasum":"0d44216a6489829897d7c8a97dbf8250444c95f8","size":2417,"noattachment":false,"key":"/@types/insert-module-globals/-/@types/insert-module-globals-7.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/insert-module-globals/download/@types/insert-module-globals-7.0.2.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_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,"_cnpmcore_publish_time":"2021-12-16T20:14:13.627Z"},"7.0.1":{"name":"@types/insert-module-globals","version":"7.0.1","description":"TypeScript definitions for insert-module-globals","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,"key":"/@types/insert-module-globals/-/@types/insert-module-globals-7.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/insert-module-globals/download/@types/insert-module-globals-7.0.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","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,"_cnpmcore_publish_time":"2021-12-16T20:14:13.896Z"},"7.0.0":{"name":"@types/insert-module-globals","version":"7.0.0","description":"TypeScript definitions for insert-module-globals","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,"key":"/@types/insert-module-globals/-/@types/insert-module-globals-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/insert-module-globals/download/@types/insert-module-globals-7.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","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,"_cnpmcore_publish_time":"2021-12-16T20:14:14.140Z"}},"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 * as stream from \"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: Tue, 07 Nov 2023 03:09:37 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).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-module-globals","license":"MIT"}