Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsm2c

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsm2c - npm Package Compare versions

Comparing version 0.1.6 to 1.0.0

48

package.json
{
"name": "jsm2c",
"version": "0.1.6",
"description": "将采用commonJS规范的模块化代码,转译成闭包形式的代码",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"debug": "supervisor --debug-brk ./debug.js",
"lint": "./node_modules/.bin/eslint .",
"test": "./node_modules/mocha/bin/_mocha --recursive ./test",
"cover": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly --recursive ./test/** && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/smocean/jsm2c.git"
"url": "git+https://github.com/npm/deprecate-holder.git"
},
"keywords": [
"commonJS",
"module",
"closure"
],
"author": "guomilo <guomilo@gmail.com>",
"engines": {
"node": ">0.10.0"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/smocean/jsm2c/issues"
"url": "https://github.com/npm/deprecate-holder/issues"
},
"homepage": "https://github.com/smocean/jsm2c#readme",
"dependencies": {
"escodegen": "1.8.0",
"esprima": "2.7.2",
"esquery": "0.4.0",
"estraverse": "4.2.0",
"immutable": "3.8.1"
},
"maintainers": [
"guomilo <guomilo@gmail.com>"
],
"directories": {},
"devDependencies": {
"autod": "2.5.1",
"chai": "3.5.0",
"coveralls": "^2.11.9",
"eslint": "^2.7.0",
"eslint-config-sm": "^0.1.20",
"istanbul": "^0.4.3",
"mocha": "^2.4.5",
"mocha-lcov-reporter": "^1.2.0"
},
"license": "MIT"
"homepage": "https://github.com/npm/deprecate-holder#readme"
}

@@ -1,57 +0,5 @@

## jsm2c
# Deprecated Package
将采用commonJS规范和es6的模块化代码,转译成闭包形式的代码。
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
### Install
```bash
npm install jsm2c -g
```
### USAGE
A simple example: the program
```
var jsm2c = require('./index.js');
jsm2c.setConfig({
root: '/Users/gml/github/smui-test'
})
var content = jsm2c.parse('/js/test.js');
```
### 配置说明
####ns
解释:生成闭包后,所使用的命名空间
类型: string
默认值:'ns'
####root
解释:项目的根目录
类型:string
默认值:当前目录
说明:注意配置项fileBasedRoot对他的影响
####fileBasedRoot
解释:js文件中使用require的路径是否是基于root的。
类型:boolean
默认值:false
说明:主要用于应对使用构建工具生成的文件,路径会被编译为基于项目root的相对路径,如fis
####compress
解释:分析的文件是否是被压缩过的文件
类型:boolean
默认值:false
说明:压缩过的文件和没压缩过的文件,代码结构不同,不能使用同一种处理方法。
####wrapJsInHtml
解释:是否对html中的js代码添加闭包代码
类型:boolean
默认值:false
说明:如果代码中的require参与运算的话,就忽略该值,为代码加上闭包。
####tmpl
解释:css和js的引入模板
Please contact support@npmjs.com if you have questions about this package.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc