{"_id":"@types/bindings","_rev":"2802547","name":"@types/bindings","description":"TypeScript definitions for bindings","dist-tags":{"latest":"1.5.1","ts2.0":"1.3.0","ts2.1":"1.3.0","ts2.2":"1.3.0","ts2.3":"1.3.0","ts2.4":"1.3.0","ts2.5":"1.3.0","ts2.6":"1.3.0","ts2.7":"1.3.0","ts2.8":"1.3.0","ts2.9":"1.3.0","ts3.0":"1.3.0","ts3.1":"1.3.0","ts3.2":"1.3.0","ts3.3":"1.5.0","ts3.4":"1.5.0","ts3.5":"1.5.0","ts3.6":"1.5.1","ts3.7":"1.5.1","ts3.8":"1.5.1","ts3.9":"1.5.1","ts4.0":"1.5.1","ts4.1":"1.5.1","ts4.2":"1.5.1","ts4.3":"1.5.1","ts4.4":"1.5.1","ts4.5":"1.5.1","ts4.6":"1.5.1","ts4.7":"1.5.1","ts4.8":"1.5.1","ts4.9":"1.5.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:21:58.000Z","created":"2017-12-11T19:14:39.259Z","1.5.1":"2021-07-06T18:17:49.511Z","1.5.0":"2020-12-12T05:02:57.992Z","1.3.0":"2017-12-11T19:14:39.259Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/bindings"},"versions":{"1.5.1":{"name":"@types/bindings","version":"1.5.1","description":"TypeScript definitions for bindings","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bindings","license":"MIT","contributors":[{"name":"Daniel Perez Alvarez","url":"https://github.com/unindented","githubUsername":"unindented"},{"name":"ExE Boss","url":"https://github.com/ExE-Boss","githubUsername":"ExE-Boss"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/bindings"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"af295f7b6360ba3b93bc61e4d280428bde967195ea1d76c15867445722e54278","typeScriptVersion":"3.6","_id":"@types/bindings@1.5.1","dist":{"shasum":"bc9c00f188fc0af4b0a18d065aaa145e32498784","size":2274,"noattachment":false,"key":"/@types/bindings/-/@types/bindings-1.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/bindings/download/@types/bindings-1.5.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bindings_1.5.1_1625595469378_0.4196180585822813"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:33:54.955Z","publish_time":1625595469511,"_cnpm_publish_time":1625595469511},"1.5.0":{"name":"@types/bindings","version":"1.5.0","description":"TypeScript definitions for bindings","license":"MIT","contributors":[{"name":"Daniel Perez Alvarez","url":"https://github.com/unindented","githubUsername":"unindented"},{"name":"ExE Boss","url":"https://github.com/ExE-Boss","githubUsername":"ExE-Boss"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/bindings"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"9a5845a057fc2c5be29f194deca5d37bd38ac29753a4ac4a10c4ab6053b951c5","typeScriptVersion":"3.3","_id":"@types/bindings@1.5.0","dist":{"shasum":"ba3a3f7abe539c1f81328d6b2af4b2390bf8b397","size":2191,"noattachment":false,"key":"/@types/bindings/-/@types/bindings-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/bindings/download/@types/bindings-1.5.0.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bindings_1.5.0_1607749377852_0.09996589233590614"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:33:54.822Z","publish_time":1607749377992,"_cnpm_publish_time":1607749377992},"1.3.0":{"name":"@types/bindings","version":"1.3.0","description":"TypeScript definitions for bindings","license":"MIT","contributors":[{"name":"Daniel Perez Alvarez","url":"https://github.com/unindented","githubUsername":"unindented"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"15a6324c9240630bbbf6f7f33fc9e6d9700380917e1393e9a6e23c16002f5f67","typeScriptVersion":"2.0","_id":"@types/bindings@1.3.0","dist":{"shasum":"e9cd75a96d7abc1ecba0dc7eecb09a9f96cd417c","size":1625,"noattachment":false,"key":"/@types/bindings/-/@types/bindings-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/bindings/download/@types/bindings-1.3.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bindings-1.3.0.tgz_1513019679196_0.34965652343817055"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:33:53.955Z","publish_time":1513019679259,"_cnpm_publish_time":1513019679259}},"readme":"# Installation\r\n> `npm install --save @types/bindings`\r\n\r\n# Summary\r\nThis package contains type definitions for bindings (https://github.com/TooTallNate/node-bindings).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bindings.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bindings/index.d.ts)\r\n````ts\r\n// Type definitions for bindings 1.5\n// Project: https://github.com/TooTallNate/node-bindings\n// Definitions by: Daniel Perez Alvarez <https://github.com/unindented>\n//                 ExE Boss <https://github.com/ExE-Boss>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference types=\"node\"/>\n\n/**\n * The main `bindings()` function loads the compiled bindings for a given module.\n * It uses V8's Error API to determine the parent filename that this function is\n * being invoked from, which is then used to find the root directory.\n */\ndeclare function bindings(mod: string | bindings.Options): any;\ndeclare namespace bindings {\n    interface Options {\n        /** @default process.env.NODE_BINDINGS_ARROW || ' → ' */\n        arrow?: string | undefined;\n        /** @default process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled' */\n        compiled?: string | undefined;\n        /** @default process.platform */\n        platform?: NodeJS.Platform | undefined;\n        /** @default process.arch */\n        arch?: string | undefined;\n        /** @default `node-v${process.versions.modules}-${process.platform}-${process.arch}` */\n        nodePreGyp?: string | undefined;\n        /** @default process.versions.node */\n        version?: string | undefined;\n        /** @default 'bindings.node' */\n        bindings?: string | undefined;\n        try?: ReadonlyArray<ReadonlyArray<string>> | undefined;\n    }\n\n    /**\n     * Gets the filename of the JavaScript file that invokes this function.\n     * Used to help find the root directory of a module.\n     * Optionally accepts an filename argument to skip when searching for the invoking filename\n     */\n    function getFileName(calling_file?: string): string;\n\n    /**\n     * Gets the root directory of a module, given an arbitrary filename\n     * somewhere in the module tree. The \"root directory\" is the directory\n     * containing the `package.json` file.\n     *\n     *   In:  /home/nate/node-native-module/lib/index.js\n     *   Out: /home/nate/node-native-module\n     */\n    function getRoot(file: string): string;\n}\n\nexport = bindings;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 18:05:42 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Daniel Perez Alvarez](https://github.com/unindented), and [ExE Boss](https://github.com/ExE-Boss).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bindings","license":"MIT"}