# can-import-module

> [![Build Status](https://travis-ci.org/canjs/can-import-module.svg?branch=master)](https://travis-ci.org/canjs/can-import-module) [![Greenkeeper badge](https://badges.greenkeeper.io/canjs/can-import-module.svg)](https://greenkeeper.io/)

Latest version **1.3.2** (published 2023-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install can-import-module
pnpm add can-import-module
yarn add can-import-module
bun add can-import-module
```

## 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.3.2 |
| Published | 2023-02-02 |
| First published | 2018-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 549.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | justinbmeyer, matthewp, bmomberger-bitovi, cherif_b, stin13 |
| Keywords | canjs, donejs-plugin |

## Links

- npm: https://www.npmjs.com/package/can-import-module
- Repository: https://github.com/canjs/can-import-module
- Homepage: https://github.com/canjs/can-import-module#readme
- Issues: https://github.com/canjs/can-import-module/issues
- npm.io page: https://npm.io/package/can-import-module

## Dependencies (2)

- [can-globals](https://npm.io/package/can-globals.md) ^1.0.1
- [can-namespace](https://npm.io/package/can-namespace.md) ^1.0.0

## Recent versions

- 1.3.2 (latest) — 2023-02-02
- 1.3.1 — 2023-02-01
- 1.3.0 — 2022-04-22
- 1.2.0 — 2018-07-10
- 1.0.0 — 2018-05-07

## README

# can-import-module

[![Build Status](https://travis-ci.org/canjs/can-import-module.svg?branch=master)](https://travis-ci.org/canjs/can-import-module) [![Greenkeeper badge](https://badges.greenkeeper.io/canjs/can-import-module.svg)](https://greenkeeper.io/)



## Usage

### ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

```js
import plugin from 'can-import-module';
```

### CommonJS use

Use `require` to load `can-import-module` and everything else
needed to create a template that uses `can-import-module`:

```js
var plugin = require("can-import-module");
```

### Standalone use

Load the `global` version of the plugin:

```html
<script src='./node_modules/can-import-module/dist/global/can-importer.js'></script>
```

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