# seatransform

> seatransform ============

Latest version **0.2.1** (published 2014-07-09) · 0 weekly downloads

## Install

```sh
npm install seatransform
pnpm add seatransform
yarn add seatransform
bun add seatransform
```

## 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.2.1 |
| Published | 2014-07-09 |
| First published | 2014-07-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | army8735, lifesinger |

## Links

- npm: https://www.npmjs.com/package/seatransform
- Repository: https://github.com/seajs/seatransform
- Issues: https://github.com/seajs/seatransform/issues
- npm.io page: https://npm.io/package/seatransform

## Dependencies (1)

- [ranma](https://npm.io/package/ranma.md) ^0.4.2

## Recent versions

- 0.2.1 (latest) — 2014-07-09
- 0.2.0 — 2014-07-07
- 0.1.0 — 2014-07-03

## README

seatransform
============

transform AMD/CommonJS/Module to CMD

[![NPM version](https://badge.fury.io/js/seatransform.png)](https://npmjs.org/package/seatransform)
[![Build Status](https://travis-ci.org/seajs/seatransform.svg?branch=master)](https://travis-ci.org/seajs/seatransform)

## API

* transform(code:String):String
  * transform source code to CMD
  * for CommonJs it will wrap define
  * for AMD it will:
    * delete `define.AMD` and `define.AMD.xxx`
    * modify the factory params to `require, exports, module`
    * add dependence by `var dependence = require("dependence")` in factory top
  * for ES6 module it will:
    * transform module from: `var dependence = require("dependence")`
    * transform import from: `var property;!function(){var _0_=require("dependence");property=_0_.property;}();`
    * also support alias: `var alias;!function(){var _0_=require("dependence");alias=_0_.property;}();`
    * export var and function: `var v;function f(){};exports.v=v;exports.f=f;`
    * export default: `module.exports=something;`
  * for ES6 it will transform to ES5
  * otherwise it will return your source code
  
## INSTALL

```
npm install seatransform
```

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