{"_id":"@types/wordwrap","_rev":"2931879","name":"@types/wordwrap","description":"TypeScript definitions for wordwrap","dist-tags":{"latest":"1.0.1","ts2.0":"1.0.0","ts2.1":"1.0.0","ts2.2":"1.0.0","ts2.3":"1.0.0","ts2.4":"1.0.0","ts2.5":"1.0.0","ts2.6":"1.0.0","ts2.7":"1.0.0","ts2.8":"1.0.0","ts2.9":"1.0.0","ts3.0":"1.0.0","ts3.1":"1.0.0","ts3.2":"1.0.0","ts3.3":"1.0.0","ts3.4":"1.0.0","ts3.5":"1.0.0","ts3.6":"1.0.1","ts3.7":"1.0.1","ts3.8":"1.0.1","ts3.9":"1.0.1","ts4.0":"1.0.1","ts4.1":"1.0.1","ts4.2":"1.0.1","ts4.3":"1.0.1","ts4.4":"1.0.1","ts4.5":"1.0.1","ts4.6":"1.0.1","ts4.7":"1.0.1","ts4.8":"1.0.1","ts4.9":"1.0.1","ts5.0":"1.0.1","ts5.1":"1.0.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-03-14T06:28:58.000Z","created":"2019-03-04T22:11:43.866Z","1.0.1":"2021-07-02T19:02:14.242Z","1.0.0":"2019-03-04T22:11:43.866Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/wordwrap"},"versions":{"1.0.1":{"name":"@types/wordwrap","version":"1.0.1","description":"TypeScript definitions for wordwrap","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordwrap","license":"MIT","contributors":[{"name":"ark120202","url":"https://github.com/ark120202","githubUsername":"ark120202"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/wordwrap"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"88300c0dfae398585c0d7125d3be593fe4b40822a6c133f8ef1b9fbe4a6df11f","typeScriptVersion":"3.6","_id":"@types/wordwrap@1.0.1","dist":{"shasum":"6cfbe1e2ea03a30831453389e5fdec8be40fd178","size":1950,"noattachment":false,"key":"/@types/wordwrap/-/@types/wordwrap-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/wordwrap/download/@types/wordwrap-1.0.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wordwrap_1.0.1_1625252534023_0.6123035791183267"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:43.377Z","publish_time":1625252534242,"_cnpm_publish_time":1625252534242},"1.0.0":{"name":"@types/wordwrap","version":"1.0.0","description":"TypeScript definitions for wordwrap","license":"MIT","contributors":[{"name":"ark120202","url":"https://github.com/ark120202","githubUsername":"ark120202"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/wordwrap"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"8efbda0dff75fff33477abbb8a829da24abffdb05601cc1f32ecb87198879635","typeScriptVersion":"2.0","_id":"@types/wordwrap@1.0.0","dist":{"shasum":"959ffdd318eb8b6915de78c8fc4978681ad2aa4d","size":1877,"noattachment":false,"key":"/@types/wordwrap/-/@types/wordwrap-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/wordwrap/download/@types/wordwrap-1.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wordwrap_1.0.0_1551737503731_0.9850399735051143"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:43.271Z","publish_time":1551737503866,"_cnpm_publish_time":1551737503866}},"readme":"# Installation\r\n> `npm install --save @types/wordwrap`\r\n\r\n# Summary\r\nThis package contains type definitions for wordwrap (https://github.com/substack/node-wordwrap#readme).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordwrap.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordwrap/index.d.ts)\r\n````ts\r\n// Type definitions for wordwrap 1.0\n// Project: https://github.com/substack/node-wordwrap#readme\n// Definitions by: ark120202 <https://github.com/ark120202>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\ntype Wrap = (text: string) => string;\n\n/**\n * Wrap lines until column `stop`. If a word is longer than `stop` characters\n * it will overflow.\n */\ndeclare function wordwrap(stop: number, params?: { mode?: wordwrap.Mode | undefined }): Wrap;\n\n/**\n * Pad out lines with spaces out to column `start` and then wrap until column\n * `stop`. If a word is longer than `stop - start` characters it will overflow.\n */\ndeclare function wordwrap(start: number, stop: number, params?: { mode?: wordwrap.Mode | undefined }): Wrap;\n\n/**\n * Pad out lines with spaces out to column `start` and then wrap until column\n * `stop`. If a word is longer than `stop - start` characters it will overflow.\n */\ndeclare function wordwrap(params: wordwrap.Options): Wrap;\n\ndeclare namespace wordwrap {\n    interface Options {\n        stop: number;\n        start: number;\n        mode?: Mode | undefined;\n    }\n\n    /**\n     * Wrap lines until column `stop`. Break up chunks longer than `stop`.\n     */\n    function hard(stop: number): Wrap;\n\n    /**\n     * Wrap lines until column `stop`. Break up chunks longer than `stop - start`.\n     */\n    function hard(start: number, stop: number): Wrap; // tslint:disable-line:unified-signatures\n\n    /**\n     * In \"soft\" mode, split chunks by `/(\\S+\\s+/` and don't break up chunks\n     * which are longer than `stop - start`, in \"hard\" mode, split chunks with\n     * `/\\b/` and break up chunks longer than `stop - start`.\n     */\n    type Mode = \"soft\" | \"hard\";\n}\n\nexport = wordwrap;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Fri, 02 Jul 2021 18:05:56 GMT\r\n * Dependencies: none\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [ark120202](https://github.com/ark120202).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordwrap","license":"MIT"}