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 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-chie

v0.1.0

Published

TSC encryption/decryption tool.

Downloads

4

Readme

Chie

Powerful TSC decryption/encryption tool for Node.js and the CLI.

Build Status Coverage Status npm version

Getting Started

Install using Yarn

yarn add node-chie

or npm:

npm i node-chie

Import and have fun!

const { TSC } = require('node-chie');

TSC().fromFile('input.tsc').decrypt().toFile('output.txt');

Usage

Chie supports the following methods:

  • fromFile(path) - Read data from file
  • fromString(str) - Read data from string
  • decrypt() - Convert TSC to plaintext
  • encrypt() - Convert plaintext to TSC
  • toString() - Return the output as a string
  • toFile(path) - Write the output to a file

CLI

Chie is also available for the command line.

npm i -g node-chie

You will have access to two new commands: decrypt-tsc and encrypt-tsc. Running either of these will display a prompt asking you for the source and destination paths.

Examples

The Github repository contains examples for real-world applications in which Chie's TSC decryption/encryption capabilities can be used. To run any of the examples, you can copy the code into a JS file, install chie (and other dependencies, if required), and run node index.js.

Example 1: Flag ID checker

Code: https://github.com/jozsefsallai/node-chie/blob/master/examples/flagcheck/index.js

This script can help you identify where exactly a given flag ID is used in all of the TSC files. This can be useful for modding where it's important not to use conflicting flag IDs. It will tell you which files contain an assignment of the specified flag (<FL+) in which events.

Example 2: Huzzahify for Cave Story+

Code: https://github.com/jozsefsallai/node-chie/blob/master/examples/huzzahify/index.js

This script will make Balrog say "Huzzah!" instead of "Oh Yeaaah!!" in Cave Story+. It looks through all TSC files and replaces each occurrence of Nicalis' translation of Balrog's catchphrase to the fanmade one. This WILL overwrite your TSC files so make sure you back them up before running the script.

Contribution

Any kind of contribution is welcome! Whether it's a question, a bug report, or a pull request, you're more than welcome to submit it on GitHub.

For PRs

Make sure to write/change the proper unit tests and run them:

yarn test

and make sure your changes pass the linter:

yarn lint

License

MIT.

Chie is a character from Cave Story (Doukutsu Monogatari), a game by Daisuke "Pixel" Amaya and Nicalis.