npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

funnycode

v0.1.2

Published

obfuscation {js,ts,cjs,mjs} code

Downloads

19

Readme

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