GithubHelp home page GithubHelp logo

rollup-plugin-javascript-obfuscator's Introduction

rollup-plugin-javascript-obfuscator

Build Status Coverage Status

Rollup plugin for javascript-obfuscator.

Installation

Install the package:

  • npm npm install --save-dev rollup-plugin-javascript-obfuscator
  • yarn yarn add --dev rollup-plugin-javascript-obfuscator

Usage

Pass any options available in the obfuscator.

import { rollup } from 'rollup'
import obfuscatorPlugin from 'rollup-plugin-javascript-obfuscator'

	rollup({
		entry: 'main.js',
		plugins: [
			//Pass options here (optional)
			obfuscatorPlugin({
			  compact: true
			})
		]
	})

Source Maps

Inline source map configuration:

{
	sourceMap: true,
	sourceMapMode: 'inline'
}

Separate source map configuration:

{
	sourceMap: true
}

rollup-plugin-javascript-obfuscator's People

Contributors

aurelhann avatar wain-pc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rollup-plugin-javascript-obfuscator's Issues

Is this plugin still maintained?

There are some open issues that make this plugin practically unusable (in order of descending importance):

All of them should be relatively easy to fix. There are two open PRs for #7.

Is there anything we can do to help?

Update obfuscator to 0.14.3 version

Please, update obfuscator to 0.14.3 version.

For each obfuscated file you should change identifiersPrefix option value on unique one to avoid conflicts between generated identifiers from different files.

there are always some lines not mangled

var _0x4651 = ['connection\x20closed', 'indexOf', 'splice', 'error', 'Server\x20error:', 'message', 'clear\x20connection', 'Server\x20closed', 'logError', 'start error\x0d\x0a', 'middleware\x20is\x20running\x20at\x20%s:%d', 'stop', 'middleware\x20has\x20been\x20closed', 'status', 'exports', '../adapter/mssql-access', '../tools/log', '../middleware/hl7parser', 'moment', '127.0.0.1', 'readFile', './ip.json', 'log', 'read error \x0d\x0a', 'parse', 'connection', 'got\x20a\x20new\x20connection\x20host:', 'remoteAddress', '\x20port\x20is:', 'remotePort', 'push', 'data', 'getSearchData', 'toString', 'from', 'queryPromise', 'queryPId', 'then', 'queryExchangePromise', 'queryWithParamsPromise', 'length', 'getReturnMsg', 'getEmptyReturnMsg', 'writeLog', 'search sccess \x0d\x0a', 'concat', 'write', 'catch', 'search error\x0d\x0a', 'search empty\x0d\x0a', 'close'];
(function (_0x4a1d85, _0x54af7f) {
var _0x485f74 = function (_0xbba3c1) {
while (--_0xbba3c1) {
_0x4a1d85'push';
}
};
_0x485f74(++_0x54af7f);
}(_0x4651, 0x1c2));
var _0x1465 = function (_0x3dd15e, _0x1f0015) {
_0x3dd15e = _0x3dd15e - 0x0;
var _0x231fd0 = _0x4651[_0x3dd15e];
return _0x231fd0;
};
'use strict';
const net = require('net');
const fs = require('fs');

const mssql = require(_0x1465('0x0'));
const log = require(_0x1465('0x1'));
const hl7Parser = require(_0x1465('0x2'));
const moment = require(_0x1465('0x3'));
const server = net'createServer';

every time I packed my code ,there are some lines not mangled,sometimes is 'fs' and 'net',and sometimes another lines,can anyone explain this?thanks

The "transformBundle" is deprecated

Warning

(!) The "transformBundle" hook used by plugin javascript-obfuscator is deprecated. The "renderChunk" hook should be used instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.