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

nandokujs

v0.0.29

Published

nandokujs is an obfuscation tool for obfuscating javascript files to be published on the Web and making it difficult to analyze the contents.

Readme

What is nandokujs

日本語の説明は こちら

nandokujs is an obfuscation tool for obfuscating javascript files to be published on the Web and making it difficult to analyze the contents.

You can make your keycode mandatory for running javascript files, with your own tally code.

In this way, javascript files are obfuscated, so important logic is not exposed to the Web in plain text.

_

_

Installation

※ It is assumed that nodejs is installed and npm can be used.

$ npm install -g nandokujs

_

_

How to use

The usage can be confirmed by executing the command.

Files obfuscated by nandokujs are output as [js file name].nan.js.

$ nandokujs -j [js file name] -m [execute eval] -t [tally code] -o [out file]
  -j (--js) [js file name]  Set the js file name to be converted.
  -m (--mode) [execute eval] Set the expansion condition.
      When [true] Expand obfuscated information with eval
      [false] Extract obfuscated information with location = `javascript:`
      If not used, [true] is set.
  -t (--tally) [tally code]  Set tally code.
      html side js call (<script src='target js'></script>)
        <script> var _$tallyCode = 'tally code'; </script>
      Define.
      If you do not use it, please do not set it.
  -o (--out) Set the output file name of nandokujs.
  -v (--version) Version information will be returned.
  -h (--help) Help information will be returned.

 Files obfuscated by nandokujs are output as [js file name].nan.js.

-j or --js Set the javascript file you want to convert.

-m or --mode Set expansion conditions.

When [true] Expand obfuscated information with eval.

[false] Extract obfuscated information with location = "javascript:".

If this setting is omitted, it will be treated as [true].
As a reason to do this setting, there are cases where you do not want to
 extract obfuscated information in eval, but you want to expand it with 
 location = "javascript:".

For example, when an error occurs during eval execution.
It is used in such a case.

-t or --tally You can optionally set the Tally code.

In that case, it is necessary to code as follows for the javascript 
 caller to publish on the web.
<script>
  var _$tallyCode = "tally code";
</script>
<script src="[target javascript].nan.js"></script>

-o or --out Set the output file name of nandokujs.

-v or --version Display the version.

-h or --help Display help information.

_

_

exsample

Obfuscation with command.

$ nandokujs -j cbox-min.js -t test

The following call is described in html using js file.

<script>
  var _$tallyCode = "test";
</script>
<script src="cbox-min.js.nan.js"></script>

_

_

Finally

With this tool, I hope to be a good deal for web development.