# babel-browser-king

> babel-browser

Latest version **1.0.3** (published 2017-07-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install babel-browser-king
pnpm add babel-browser-king
yarn add babel-browser-king
bun add babel-browser-king
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-07-08 |
| First published | 2017-06-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | xiyangbaixue |

## Links

- npm: https://www.npmjs.com/package/babel-browser-king
- Repository: https://github.com/baixuexiyang/babel-browser
- Homepage: https://github.com/baixuexiyang/babel-browser#readme
- Issues: https://github.com/baixuexiyang/babel-browser/issues
- npm.io page: https://npm.io/package/babel-browser-king

## Dependencies (7)

- [gulp](https://npm.io/package/gulp.md) ^3.8.7
- [moment](https://npm.io/package/moment.md) ^2.16.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.2
- [gulp-clean](https://npm.io/package/gulp-clean.md) ^0.3.1
- [gulp-header](https://npm.io/package/gulp-header.md) ^1.1.1
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.0
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^1.0.0

## Recent versions

- 1.0.3 (latest) — 2017-07-08
- 1.0.2 — 2017-06-29
- 1.0.1 — 2017-06-29
- 1.0.0 — 2017-06-29

## README

# babel-browser   
如何在开发环境（浏览器端）直接运行es6？es6已经发布一段时间了，现在大部分是在node.js环境运行，或者通过babel编译之后运行。babel-browser主要实现用户能够在浏览器上直接运行es6语法。    
   
   
How do you run ES6 directly in the development environment(browser)? ES6 has been around for a while now, most of it is running in the node.js environment, or running through Babel compilation. Babel-browser primarily enables users to directly run ES6 syntax on their browsers.
        
[demo](https://github.com/baixuexiyang/es6-demo.git)   
        
```  
npm install babel-browser-king  
```   
      
# how to use?     
```
<script src="https://unpkg.com/babel-browser-king@1.0.2/babel-browser.min.js"></script>   
<script>   
	require.config({   
		path: ''  //es6 root   
	});   
</script>   
<script type="text/babel">   
	let test = 1;   
</script>   
<script type="text/babel" src="test.js"></script>    
```    
    
# attention   
require或者import加载文件只能是相对地址      
script标签的type属性值只能是text/babel    
   
   
require or import can only load files relative addresses     
The type attribute value of the script tag is only text/babel

---
_Source: https://npm.io/package/babel-browser-king · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
