UNPKG

4.76 kBMarkdownView Raw
1<p align="center">
2 <a href="https://swc-project.github.io/">
3 <img alt="babel" src="https://raw.githubusercontent.com/swc-project/logo/master/swc.png" width="546">
4 </a>
5</p>
6
7<p align="center">
8 Make the web (development) faster.
9</p>
10
11<p align="center">
12 <a href="https://www.npmjs.com/package/@swc/core">
13 <img alt="npm Downloads" src="https://img.shields.io/npm/dw/@swc/core">
14 </a>
15 <a href="https://crates.io/crates/swc_ecma_parser">
16 <img alt="undefined" src="https://img.shields.io/crates/d/swc_ecma_parser.svg?label=crates.io%20dowloads">
17 </a>
18</p>
19<p align="center">
20 <a href="https://travis-ci.com/github/swc-project/swc">
21 <img alt="Travis Status" src="https://img.shields.io/travis/swc-project/swc/master.svg?label=travis&maxAge=43200">
22 </a>
23 <a href="https://codecov.io/gh/swc-project/swc">
24 <img alt="Coverage" src="https://codecov.io/gh/swc-project/swc/branch/master/graph/badge.svg">
25 </a>
26</p>
27
28swc is a super-fast typescript / javascript compiler written in rust.
29
30# Documentation
31
32Check out the documentation [in the website](https://swc-project.github.io/docs/installation).
33
34# Features
35
36Please see [comparison with babel](https://swc-project.github.io/docs/comparison-babel).
37
38# Performance
39
40The lower bound of the speedup compared to babel is **18**. The benchmarks were run on Macbook pro, dual core, 2.3GHz Intel Core i5, 16 GB ram
41
42| | performance |
43| ------------------ | :------------------------------------: |
44| swc (es3) | 761 ops/sec ±0.23% (89 runs sampled) |
45| swc (es2015) | 800 ops/sec ±1.02% (87 runs sampled) |
46| swc (es2016) | 2123 ops/sec ±0.84% (88 runs sampled) |
47| swc (es2017) | 2131 ops/sec ±1.13% (90 runs sampled) |
48| swc (es2018) | 2981 ops/sec ±0.25% (90 runs sampled) |
49| swc-optimize (es3) | 712 ops/sec ±0.21% (86 runs sampled) |
50| babel | 41.75 ops/sec ±8.07% (56 runs sampled) |
51
52
53<h2 align="center">Supporting swc</h2>
54
55<p align="center">
56 <a href="#backers">
57 <img alt="Backers on Open Collective" src="https://opencollective.com/swc/tiers/backer/badge.svg?label=backer&color=brightgreen" />
58 </a>
59 <a href="#gold-sponsors">
60 <img alt="Gold sponsors on Open Collective" src="https://opencollective.com/swc/tiers/gold-sponsors/badge.svg?label=Gold%20sponsors&color=brightgreen"/>
61 </a>
62 <a href="#silver-sponsors">
63 <img alt="Silver sponsors on Open Collective" src="https://opencollective.com/swc/tiers/silver-sponsors/badge.svg?label=Silver%20sponsors&color=brightgreen"/>
64 </a>
65 <a href="#bronze-sponsors">
66 <img alt="Bronze sponsors on Open Collective" src="https://opencollective.com/swc/tiers/bronze-sponsors/badge.svg?label=Bronze%20sponsors&color=brightgreen"/>
67 </a>
68</p>
69
70swc is a community-driven project, and is maintained by a group of [volunteers](https://opencollective.com/swc#team). If you'd like to help support the future of the project, please consider:
71
72 - Giving developer time on the project. (Message us on [Slack](https://swc-org.slack.com/) for guidance!)
73 - [Slackin for swc](https://swc-slackin.herokuapp.com)
74 - Giving funds by becoming a sponsor (see below)!
75
76## Open Collective Sponsors
77
78Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/swc#sponsor)]
79
80<h2 id="gold-sponsers" align="center">Gold Sponsors</h2>
81<a href="https://opencollective.com/swc">
82 <img src="https://opencollective.com/swc/tiers/gold-sponsers.svg?avatarHeight=64">
83</a>
84
85<h2 id="silver-sponsers" align="center">Silver Sponsors</h2>
86<a href="https://opencollective.com/swc">
87 <img src="https://opencollective.com/swc/tiers/silver-sponsers.svg?avatarHeight=64">
88</a>
89
90
91<h2 id="bronze-sponsers" align="center">Bronze Sponsors</h2>
92<a href="https://opencollective.com/swc">
93 <img src="https://opencollective.com/swc/tiers/bronze-sponsers.svg?avatarHeight=64">
94</a>
95
96
97<h2 id="backers" align="center">Backers</h2>
98<a href="https://opencollective.com/swc">
99 <img src="https://opencollective.com/swc/tiers/backer.svg?avatarHeight=64">
100</a>
101
102[Become a backer](https://opencollective.com/swc#backer) and get your image on our README on Github with a link to your site.
103
104## Contributing
105
106See [CONTRIBUTING.md](CONTRIBUTING.md). You may also find the architecture
107documentation useful ([ARCHITECTURE.md](ARCHITECTURE.md)).
108
109## License
110
111swc is primarily distributed under the terms of both the MIT license
112and the Apache License (Version 2.0).
113
114See LICENSE-APACHE and LICENSE-MIT for details.
115
116[babel]: https://github.com/babel/babel
117[closure compiler]: https://github.com/google/closure-compiler
118[rust]: https://www.rust-lang.org