commit d7245855969859cfc9561f09568e371c67fa8828 Author: imshaikot Date: Fri Jan 19 15:49:38 2018 +0600 added initial commit diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..404739c --- /dev/null +++ b/.babelrc @@ -0,0 +1,13 @@ +{ + "presets": [ + ["env", { + "targets": { + "browsers": [ + "> 1%", + "last 2 versions" + ] + } + }], + "stage-2" + ] +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6028a06 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# http://editorconfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +max_line_length = 80 +trim_trailing_whitespace = true + +[*.md] +max_line_length = 0 +trim_trailing_whitespace = false + +[COMMIT_EDITMSG] +max_line_length = 0 + diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..0909c0f --- /dev/null +++ b/.eslintrc @@ -0,0 +1,31 @@ +{ + "extends": "airbnb", + "rules": { + "no-console": [ + "error", + { + "allow": [ + "warn", + "error", + "info" + ] + } + ], + "symbol-description": [ + "off" + ], + "no-underscore-dangle": [ + "off" + ], + "no-param-reassign": [ + "off" + ], + "import/no-unresolved": [ + "off" + ] + }, + "env": { + "browser": true, + "node": true + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff97fc8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ + +# See https://help.github.com/ignore-files/ for more about ignoring files. + +# dependencies +/node_modules + +# production +/build + +index.html +index.js +lib/ +umd/ + +# misc +.DS_Store +npm-debug.log* diff --git a/package.json b/package.json new file mode 100644 index 0000000..883105a --- /dev/null +++ b/package.json @@ -0,0 +1,39 @@ +{ + "name": "srt-webvtt", + "version": "0.0.0", + "description": "Convert SRT format subtitle to WebVTT on the fly over HTML5 environmentø", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/imshaikot/srt-webvtt.git" + }, + "keywords": [ + "Subtitle", + "video", + "subtitle", + "track", + "element", + "srt-to-vtt", + "str-to-webvtt", + "converter", + "html5", + "video", + "html5", + "video", + "track", + "html5", + "video", + "subtitle", + "str", + "support" + ], + "author": "Shariar Shaikot", + "license": "MIT", + "bugs": { + "url": "https://github.com/imshaikot/srt-webvtt/issues" + }, + "homepage": "https://github.com/imshaikot/srt-webvtt#readme" +}