# seajs-wrap **Repository Path**: dsym/seajs-wrap ## Basic Information - **Project Name**: seajs-wrap - **Description**: A Sea.js plugin of loading CommonJS modules - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README seajs-wrap [![spm package](http://spmjs.io/badge/seajs-wrap)](http://spmjs.io/package/seajs-wrap) [![Build Status](https://secure.travis-ci.org/seajs/seajs-wrap.png?branch=master)](https://travis-ci.org/seajs/seajs-wrap) ========== The Sea.js plugin for loading CommonJS modules directly. It would wrap files with `define(function(require, exports, module) {})` block so that you can load CommonJS modules without wrapping it first. It could only load modules in the same domain, so please use it in **developement environment**. Install ------- Install with [spm@3.x](http://spmjs.io): $ spm install seajs-wrap Usage ----- ```html ``` ```js // common.js // It is a CommonJS module var example = 'CommonJS' module.exports = function() { return example; } ``` - no wrap ```html ``` For more details please visit [中文文档](https://github.com/seajs/seajs-wrap/issues/1).