Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

charosc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

charosc

bundlerRubyGems.org
Version
0.0.1
Version published
Maintainers
1
Created
Source

Charosc

Build Status

Generate text using depth-modulated, sequentially weighted multi-character selections. Expect bugs.

Installation

$ gem install charosc

Usage

Usage: charosc [options] <textfile>
         --length, -l <i>:   Output length in characters (default: 5000)
          --depth, -d <i>:   Sequence depth (default: 3)
        --mod-enabled, -m:   Enable modulation
        --mod-top, -o <i>:   Highest value in modulation range (default: 500)
     --mod-bottom, -b <i>:   Lowest value in modulation range (default: 2)
  --mod-increment, -i <i>:   Modulator per-step increment (default: 1)
    --output-file, -u <s>:   Output file
            --version, -v:   Print version and exit
               --help, -h:   Show this message
text = File.read("/path/to/text")

generator = Charosc::Generator.new(
  text,        # Input string
  top:    300, # Top of modulation range
  bottom: 10,  # Bottom of modulation range
  inc:    0.5  # Increment amount per #next call on modulator (Oscillator)
)

generator.generate(1000) #=> Returns a 1000-char string

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 24 Feb 2013

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