Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-github

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-github

GitHub.com's Babel configuration

  • 2.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-25.71%
Maintainers
1
Weekly downloads
 
Created
Source

babel-preset-github

This is a Babel preset which GitHub.com uses to transpile our JavaScript. It supports ES2018, plus a few extra non-standard features which we use to make development easier.

Pull requests that fix bugs are welcome. We will likely only add new plugins as they are needed for the GitHub.com codebase.

To install you need node and npm:

$ npm i -D babel-preset-github

Then use the preset in your .babelrc

{
  "presets": ["github"]
}

This example only includes the polyfills and code transforms needed for a specific list of browsers that GitHub supports. You can change this by passing in a valid browserlist:

{
	"presets": [
		["github", {
			"targets": {
				"browsers": ["last 2 versions", "safari >= 7"]
			}
		}]
	]
}

LICENSE

The project is available as open source under the terms of the MIT License.

When using the GitHub logos, be sure to follow the GitHub logo guidelines.

FAQs

Package last updated on 21 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc