Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chie

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chie

TSC encryption/decryption tool.

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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 chie

or npm:

npm i chie

Import and have fun!

const { TSC } = require('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 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/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/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.

Keywords

FAQs

Package last updated on 10 Oct 2019

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