{"_id":"srt2vtt","_rev":"9-aaeb4da5546ab7a2124a125f70b18c91","name":"srt2vtt","description":"Encoding-aware .srt (SubRip Text) to .vtt (WebVTT) converter.","dist-tags":{"latest":"1.3.1"},"versions":{"1.0.0":{"name":"srt2vtt","version":"1.0.0","description":"Encoding-aware .srt (SubRip Text) to .vtt (WebVTT) converter.","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha"},"bugs":{"url":"http://github.com/deestan/srt2vtt/issues","email":"helge.holm@gmail.com"},"repository":{"type":"git","url":"http://github.com/deestan/srt2vtt.git"},"author":{"name":"Helge Skogly Holm","email":"helge.holm@gmail.com"},"license":"MIT","dependencies":{"codepage":"~1.3.4","mocha":"^1.21.4","utfx":"~1.0.0"},"devDependencies":{"mocha":"^1.21.4"},"gitHead":"0999bca65992efd3e15f7d0372328ceaae4f4de1","homepage":"https://github.com/deestan/srt2vtt","_id":"srt2vtt@1.0.0","_shasum":"d1f4e94f1d2aa0e25b2d05b8709226836b1122a7","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"deestan","email":"helge.holm@gmail.com"},"maintainers":[{"name":"deestan","email":"helge.holm@gmail.com"}],"dist":{"shasum":"d1f4e94f1d2aa0e25b2d05b8709226836b1122a7","tarball":"https://registry.npmjs.org/srt2vtt/-/srt2vtt-1.0.0.tgz","integrity":"sha512-8xiHGQMhmZ1zZ7v/VOryOtSvI/86vVXIILxvmjoT0obDRl6iRZGPR8vt1aAcnTTEZCJVGFT/eqy9/WibGfpPuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvFj4THUjUthtygmnx2cXZd6+4ln2bln2kfwcX5ZVR4QIgc4fV6PTqrE/nUhvnIQuHfu6hgrmb5/jP6fjICZ30CJg="}]}},"1.2.0":{"name":"srt2vtt","version":"1.2.0","description":"Encoding-aware .srt (SubRip Text) to .vtt (WebVTT) converter.","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha"},"bugs":{"url":"http://github.com/deestan/srt2vtt/issues","email":"helge.holm@gmail.com"},"repository":{"type":"git","url":"http://github.com/deestan/srt2vtt.git"},"author":{"name":"Helge Skogly Holm","email":"helge.holm@gmail.com"},"license":"MIT","dependencies":{"codepage":"~1.3.4","utfx":"~1.0.0"},"devDependencies":{"mocha":"^1.21.4"},"gitHead":"ac96fc913c399e349e017e4b74caf912d1376731","homepage":"https://github.com/deestan/srt2vtt","_id":"srt2vtt@1.2.0","_shasum":"f17bbae66d3a0368b1e3d8e1e547e7aad794e70a","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"deestan","email":"helge.holm@gmail.com"},"maintainers":[{"name":"deestan","email":"helge.holm@gmail.com"}],"dist":{"shasum":"f17bbae66d3a0368b1e3d8e1e547e7aad794e70a","tarball":"https://registry.npmjs.org/srt2vtt/-/srt2vtt-1.2.0.tgz","integrity":"sha512-xp0GQyoKovr8jaKnvEXrMcq6LFrtrrZbxfmjAYZUaK2ghAUR8plY5jxboYCrIgnLhbBQUzPjzfdea59WZW8dog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBG6xwgTH9NY6JSyQJp/DAkfA/L+pGIOUfjr/g3O9XyAiEAmAo/gn/Y2icg9D+PTw2OYMGMwZLj8DxSiPLqLdSq58g="}]}},"1.2.1":{"name":"srt2vtt","version":"1.2.1","description":"Encoding-aware .srt (SubRip Text) to .vtt (WebVTT) converter.","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha"},"bugs":{"url":"http://github.com/deestan/srt2vtt/issues","email":"helge.holm@gmail.com"},"repository":{"type":"git","url":"http://github.com/deestan/srt2vtt.git"},"author":{"name":"Helge Skogly Holm","email":"helge.holm@gmail.com"},"license":"MIT","dependencies":{"codepage":"~1.3.4","utfx":"~1.0.0"},"devDependencies":{"mocha":"^1.21.4"},"gitHead":"a8db21544e76f7825327b4e82578116c6849e7ef","homepage":"https://github.com/deestan/srt2vtt","_id":"srt2vtt@1.2.1","_shasum":"02b82a141473708984cff878b96777ebf2e603dd","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"deestan","email":"helge.holm@gmail.com"},"maintainers":[{"name":"deestan","email":"helge.holm@gmail.com"}],"dist":{"shasum":"02b82a141473708984cff878b96777ebf2e603dd","tarball":"https://registry.npmjs.org/srt2vtt/-/srt2vtt-1.2.1.tgz","integrity":"sha512-Oi9cyoCaeATm/iXByaLJ54ZlyNytgBy5JNbQi2i9YL5qoSQrO9g0bNQj2ZYhvessHBFqGueeFE2mH1HFxPIL3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHxHHymRW+t6mzW9L+J8m15sS3Dq5iR5q9Fm2qJXiHCICICdfuwdfT8uPdOX0Hm+95BT7V3gWMXKpC5ND3n14jZLR"}]}},"1.3.0":{"name":"srt2vtt","version":"1.3.0","description":"Encoding-aware .srt (SubRip Text) to .vtt (WebVTT) converter.","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha"},"bugs":{"url":"http://github.com/deestan/srt2vtt/issues","email":"helge.holm@gmail.com"},"repository":{"type":"git","url":"http://github.com/deestan/srt2vtt.git"},"author":{"name":"Helge Skogly Holm","email":"helge.holm@gmail.com"},"license":"MIT","dependencies":{"codepage":"~1.3.4","utfx":"~1.0.0"},"devDependencies":{"mocha":"^1.21.4"},"gitHead":"1569810a117c74c9edcd57fcf61426c3147809f3","homepage":"https://github.com/deestan/srt2vtt","_id":"srt2vtt@1.3.0","_shasum":"f9724a371d6857bbf1ed329b4cd629a8e4c583a2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"deestan","email":"helge.holm@gmail.com"},"maintainers":[{"name":"deestan","email":"helge.holm@gmail.com"}],"dist":{"shasum":"f9724a371d6857bbf1ed329b4cd629a8e4c583a2","tarball":"https://registry.npmjs.org/srt2vtt/-/srt2vtt-1.3.0.tgz","integrity":"sha512-HCYrh3sbxr41S0T+8p+vHniXQl9ytE16WTGZ2LX/5yye1fa2/hxEO4q0vaksW8gtiY+VpV06oAkdtT8BgjJWaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPEZF8JDhs9x8BHA2dn+TP/Nn+sxikanHXWK0djvHfUQIgHrwAW0Oa6BShzMxoO0zD2t24p/Im30Xf3K1XJkfEgq8="}]}},"1.3.1":{"name":"srt2vtt","version":"1.3.1","description":"Encoding-aware .srt (SubRip Text) to .vtt (WebVTT) converter.","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha"},"bugs":{"url":"http://github.com/deestan/srt2vtt/issues","email":"helge.holm@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/deestan/srt2vtt.git"},"author":{"name":"Helge Skogly Holm","email":"helge.holm@gmail.com"},"license":"MIT","dependencies":{"codepage":"~1.4.0","utfx":"~1.0.0"},"devDependencies":{"mocha":"^2.3.4"},"gitHead":"d08d4db279b3183b0d83321782e31ebb893d88d2","homepage":"https://github.com/deestan/srt2vtt#readme","_id":"srt2vtt@1.3.1","_shasum":"c2b5047c2c297b693d3bab518765e4b7c24d8173","_from":".","_npmVersion":"3.7.1","_nodeVersion":"4.1.2","_npmUser":{"name":"deestan","email":"helge.holm@gmail.com"},"dist":{"shasum":"c2b5047c2c297b693d3bab518765e4b7c24d8173","tarball":"https://registry.npmjs.org/srt2vtt/-/srt2vtt-1.3.1.tgz","integrity":"sha512-vTa4t3tIDJSj4kG3FqnfxQcBW1STLbEDZxjVb3R/MOUZzYpGlsDTUsTrMXH1ZPXxWdQB9sdZ9n/CaXUtLEIEvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2x3tpcrJ6ThIQSRbn+QKOPW9+PcEFuQNOKWN9Zuu1fAiEAmJ/Km8DDvMYSNLl+Fje3aOoSY/3LKdcDEc4/R0O7hvk="}]},"maintainers":[{"name":"deestan","email":"helge.holm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/srt2vtt-1.3.1.tgz_1456395123189_0.28896746109239757"}}},"readme":"# srt2vtt\n\n[![NPM](https://nodei.co/npm/srt2vtt.png)](https://nodei.co/npm/srt2vtt/)\n\nEncoding-aware .srt (SubRip Text) to .vtt (WebVTT) converter.\n\nHandles CP1252 and UTF8/16/16LE/32/32LE.\n\n## Quick Example\n\n```javascript\nvar fs = require('fs');\nvar srt2vtt = require('srt2vtt');\n\nvar srtData = fs.readFileSync('captions.srt');\nsrt2vtt(srtData, function(err, vttData) {\n  if (err) throw new Error(err);\n  fs.writeFileSync('captions.vtt', vttData);\n});\n```\n\n<a name=\"download\" />\n## Download\n\nFor [Node.js](http://nodejs.org/), use [npm](http://npmjs.org/):\n\n    npm install srt2vtt\n\n## Documentation\n\n<a name=\"srt2vtt\" />\n### srt2vtt (srtBuffer, callback)\n### srt2vtt (srtBuffer, defaultCodepageOverride, callback)\n\nIt assumes input `srtBuffer` has the default CP1252 encoding, unless a UTF8, UTF16, UTF16LE, UTF32, or UTF32LE BOM is found at the start.\n\nIf the `defaultCodepageOverride` is given, that codepage is used instead of CP1252.\n\nCallback is assumed to be a `function(error, vttBuffer)`.\n\n__Arguments__\n\n* srtBuffer - `Buffer` containing the .srt file.\n* defaultCodepageOverride (optional) - `int` number of codepage to use instead of CP1252 when no UTF BOM is found.  This must be a numeric value, so e.g. give `1256` for codepage CP1256 (Arabic).\n* callback - `function(error, vttBuffer)`, in which `error` will be `null` if the conversion were successful, or an error message if not successful.  `vttBuffer` is a UTF8-encoded buffer containing the converted WEBVTT file data.\n\n<a name=\"convert\" />\n### bin/convert.js\n\nA command-line utility that expects a `.srt` file in `stdin`, will transform it to `.vtt`, and send it to `stdout`.\n\n__Example__\n\n```\n$ node bin/convert.js < mighty_jack.srt > mighty_jack.vtt\n```\n","maintainers":[{"name":"deestan","email":"helge.holm@gmail.com"}],"time":{"modified":"2022-06-26T23:25:37.989Z","created":"2014-08-12T13:35:22.416Z","1.0.0":"2014-08-12T13:35:22.416Z","1.2.0":"2014-11-26T11:54:36.040Z","1.2.1":"2015-06-15T08:29:28.548Z","1.3.0":"2015-06-16T15:12:43.148Z","1.3.1":"2016-02-25T10:12:06.002Z"},"homepage":"https://github.com/deestan/srt2vtt#readme","repository":{"type":"git","url":"git+ssh://git@github.com/deestan/srt2vtt.git"},"author":{"name":"Helge Skogly Holm","email":"helge.holm@gmail.com"},"bugs":{"url":"http://github.com/deestan/srt2vtt/issues","email":"helge.holm@gmail.com"},"license":"MIT","readmeFilename":"README.md"}