# babel-plugin-forbidden-imports

> Forbidden using import/require expression in your files

Latest version **0.1.2** (published 2017-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-forbidden-imports
pnpm add babel-plugin-forbidden-imports
yarn add babel-plugin-forbidden-imports
bun add babel-plugin-forbidden-imports
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-04-04 |
| First published | 2017-04-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Handsoncode |
| Maintainers | budnix |
| Keywords | babel-plugin |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-forbidden-imports
- Repository: https://github.com/handsontable/babel-plugin-forbidden-imports
- Homepage: https://github.com/handsontable/babel-plugin-forbidden-imports#readme
- Issues: https://github.com/handsontable/babel-plugin-forbidden-imports/issues
- npm.io page: https://npm.io/package/babel-plugin-forbidden-imports

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2017-04-04
- 0.1.1 — 2017-04-04

## README

## babel-plugin-forbidden-imports

[![Build Status](https://img.shields.io/travis/handsontable/babel-plugin-forbidden-imports.svg?style=flat-square)](https://travis-ci.org/handsontable/babel-plugin-forbidden-imports)
[![NPM](https://img.shields.io/npm/v/babel-plugin-forbidden-imports.svg?style=flat-square)](https://npmjs.org/package/babel-plugin-forbidden-imports)
[![Dependencies](https://img.shields.io/david/handsontable/babel-plugin-forbidden-imports.svg?style=flat-square)](https://david-dm.org/handsontable/babel-plugin-forbidden-imports)
[![License](https://img.shields.io/npm/l/babel-plugin-forbidden-imports.svg?style=flat-square)](https://npmjs.org/package/babel-plugin-forbidden-imports)

This is a Babel plugin for static import/require modules checking. Any imported modules (using import or require) by default are forbidden. This plugin
can be helpful in situations when you want to forbidden using specific modules in your environment.

# Installation

Install via [npm](https://npmjs.org/package/babel-plugin-forbidden-imports).
```sh
npm install --save-dev babel-plugin-forbidden-imports
```

# Configuration

Configure it in your babelrc file (`.babelrc`).

```js
{
  "env": {
    "node": {
      "plugins": [
        [
          "babel-plugin-forbidden-imports",
          {
            allowedModules: ["./my-local-module", "lodash/*"]
          }
        ]
      ]
    }
  }
}

```

or use with `babel-register`

```
require('babel-register')({
  plugins: [
    [
      'babel-plugin-forbidden-imports',
      {
        allowedModules: ["./my-local-module", "lodash/*"]
      }
    ]
  ]
});

```

## License

[MIT License](http://opensource.org/licenses/MIT)

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