8000 GitHub - akameco/read-babelrc-up: Read the closet .babelrc file
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

akameco/read-babelrc-up

Repository files navigation

read-babelrc-up

Build Status styled with prettier All Contributors

Read the closet Babel configuration file or babel in package.json.

Install

$ npm install --save read-babelrc-up

Usage

const readBabelrcUp = require('read-babelrc-up')

readBabelrcUp().then(result => {
  console.log(result)
  /*
  {
    babel:
     { presets: [ 'es2015', 'react' ],
      plugins: [ 'transform-class-properties' ] },
    path: '/Users/akameco/src/my-babel-app/.babelrc'
  }
  */
})

API

readBabelrcUp([options])

Returns a Promise for the result object.

readBabelrcUp.sync([options])

Return the result object.

options

cwd

Type: string
Default: .

Directory to start looking for .babelrc file.

Related

  • find-up - Find a file by walking up parent directories

Contributors

Thanks goes to these wonderful people (emoji key):


akameco

💻 📖 ⚠️ 🚇

Jiyoon Jang

💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco

About

Read the closet .babelrc file

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0