diff --git a/.gitignore b/.gitignore index 8ffc6806..33cc69e7 100644 --- a/.gitignore +++ b/.gitignore @@ -181,4 +181,5 @@ pip-log.txt .DS_Store # Visual Studio Code -.vscode/ \ No newline at end of file +.vscode/ +browse.VC.db diff --git a/README.md b/README.md index 2ec67d96..803534f6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -flv.js +flv.js [![npm](https://img.shields.io/npm/v/flv.js.svg?style=flat)](https://www.npmjs.com/package/flv.js) ====== An HTML5 Flash Video (FLV) Player written in pure JavaScript without Flash. LONG LIVE FLV! @@ -24,6 +24,11 @@ flv.js is written in [ECMAScript 6][], transpiled into ECMAScript 5 by [Babel Co - Compatible with Chrome, FireFox, Safari 10, IE11 and Edge - Extermely low overhead, and hardware accelerated by your browser! +## Installation +```bash +npm install --save flv.js +``` + ## Build ```bash npm install # install dev-dependences diff --git a/package.json b/package.json index 08120ad6..eb017285 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,12 @@ "version": "0.0.1", "description": "HTML5 FLV Player", "keywords": ["html5", "flv", "mse", "javascript"], - "main": "./src/flv.js", + "main": "./dist/flv.js", "types": "./d.ts/flv.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/Bilibili/flv.js" + }, "scripts": { "dev": "gulp watch", "build": "gulp release", @@ -15,7 +19,7 @@ "webworkify": "^1.4.0" }, "devDependencies": { - "babel-preset-es2015": "^6.16.0", + "babel-preset-es2015": "^6.18.0", "babelify": "^7.3.0", "browserify": "^13.1.1", "del": "^2.2.0",