Skip to content

Commit cd5824f

Browse files
committed
Created the fork of escodegen package for javascript-obfuscator
1 parent b7e83a3 commit cd5824f

9 files changed

+5001
-331
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ node_modules/
1010
cover_html/
1111

1212
npm-debug.log
13+
14+
.idea

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
npm-debug.log
22
.DS_Store
3+
.idea
34
.vimrc.local
45
t.js
56
esprima.js

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
v2.1.0
2+
---
3+
* Created the fork of `escodegen` for `javascript-obfuscator` package
4+
* `nullish-coalescing` support. Original PR: https://github.com/estools/escodegen/pull/417
5+
* `bigint` and `numeric-separators` support. Original PR: https://github.com/estools/escodegen/pull/421
6+
* Support for `exported` field of `ExportAllDeclaration` node. Original PR: https://github.com/estools/escodegen/pull/420

README.md

+2-55
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,6 @@
1-
## Escodegen
2-
[![npm version](https://badge.fury.io/js/escodegen.svg)](http://badge.fury.io/js/escodegen)
3-
[![Build Status](https://secure.travis-ci.org/estools/escodegen.svg)](http://travis-ci.org/estools/escodegen)
4-
[![Dependency Status](https://david-dm.org/estools/escodegen.svg)](https://david-dm.org/estools/escodegen)
5-
[![devDependency Status](https://david-dm.org/estools/escodegen/dev-status.svg)](https://david-dm.org/estools/escodegen#info=devDependencies)
1+
## `escodegen` fork for `javascript-obfuscator` package
62

7-
Escodegen ([escodegen](http://github.com/estools/escodegen)) is an
8-
[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
9-
(also popularly known as [JavaScript](http://en.wikipedia.org/wiki/JavaScript))
10-
code generator from [Mozilla's Parser API](https://developer.mozilla.org/en/SpiderMonkey/Parser_API)
11-
AST. See the [online generator](https://estools.github.io/escodegen/demo/index.html)
12-
for a demo.
13-
14-
15-
### Install
16-
17-
Escodegen can be used in a web browser:
18-
19-
<script src="escodegen.browser.js"></script>
20-
21-
escodegen.browser.js can be found in tagged revisions on GitHub.
22-
23-
Or in a Node.js application via npm:
24-
25-
npm install escodegen
26-
27-
### Usage
28-
29-
A simple example: the program
30-
31-
escodegen.generate({
32-
type: 'BinaryExpression',
33-
operator: '+',
34-
left: { type: 'Literal', value: 40 },
35-
right: { type: 'Literal', value: 2 }
36-
});
37-
38-
produces the string `'40 + 2'`.
39-
40-
See the [API page](https://github.com/estools/escodegen/wiki/API) for
41-
options. To run the tests, execute `npm test` in the root directory.
42-
43-
### Building browser bundle / minified browser bundle
44-
45-
At first, execute `npm install` to install the all dev dependencies.
46-
After that,
47-
48-
npm run-script build
49-
50-
will generate `escodegen.browser.js`, which can be used in browser environments.
51-
52-
And,
53-
54-
npm run-script build-min
55-
56-
will generate the minified file `escodegen.browser.min.js`.
3+
See: https://github.com/javascript-obfuscator/javascript-obfuscator/issues/795
574

585
### License
596

bin/escodegen.js

-77
This file was deleted.

bin/esgenerate.js

-64
This file was deleted.

0 commit comments

Comments
 (0)