New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

funnycode

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

funnycode

obfuscation {js,ts,cjs,mjs} code

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-91.3%
Maintainers
1
Weekly downloads
 
Created
Source

funnycode

funnycode

NPM version

一个让你的代码变得不可读的库。

🤔️ Why

出于某些原因,你会希望你的代码变得不可读,所以你会用到它的。

🚀 Features

  • 支持js,ts,cjs,mjs
  • 操作是可逆的(当然你需要操作时所使用的 key)
  • 混淆后代码是可执行的

🔧 Usage

Install

pnpm add -D funnycode

Add package.json

{
  "scripts":{
   	"funnycode":"funnycode"
  }
}

Add key

在根目录新建一个.funnycode文件,并在里面直接输入你要设置的 key

tip: 记得将 .funnycode 添加到 .gitignore 中

如果你不想添加文件,你可以通过对应的命令输入 key

funnycode -k <你的key>

或者

funnycode -key <你的key>

Config funnycode.config.{js,ts,cjs,mjs}

  • entry
    • 是否必须 : 是
    • 类型 : 数组
    • 描述 : 需要进行编译的文件
module.exports = {
  // 文件夹 会处理文件内所有js,ts,cjs,mjs文件
  entry: ["./src"],
};
module.exports = {
  // 处理单个文件
  entry: ["./src/index.js"],
};
module.exports = {
  // 也可以这样 请确保后缀是js文件
  entry: ["./src/**/*.{js,ts,cjs,mjs}"],
};

Use encode

如果你配置了.funnycodefunnycode.config

pnpm funnycode encode

如果你配置了.funnycode

pnpm funnycode encode ./src

如果你配置funnycode.config

pnpm funnycode encode -k <你的key>

如果你没有任何配置

pnpm funnycode encode ./src -k <你的key>

Use decode

同上,只需要把encode改成decode

🐼 Author

geekris1

📖 Template

模板来自于 starter-ts

Keywords

FAQs

Package last updated on 17 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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