
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
gosper-curve-cli
Advanced tools
Print the Gosper Curve to the console!

Why the console? Because it's the cool way.
See All Fractals in the fractals-cli project.
npx:$ npx gosper-curve-cli <n>
$ npx gosper-curve-cli <n> [options]
where n >= 0.
$ npm install --global gosper-curve-cli
$ gosper-curve-cli <n>
$ gosper-curve-cli <n> [options]
where n >= 0.
$ npm install gosper-curve-cli
then:
const gosper_curve = require('gosper-curve-cli');
console.log(gosper_curve.create(<n>);
console.log(gosper_curve.create(<n>, {
inverse: <boolean>,
rotation: <left|right|standard>,
line: <bold|standard>
});
The config params are optional.
$ gosper-curve-cli <n>
The first param <n> is the recursive step. <n> should be an integer greater than or equal to 0.
$ gosper-curve-cli 2

$ gosper-curve-cli 3

$ gosper-curve-cli <n> --inverse
The optional --inverse param (or shorthand -i) will draw the inverse Gosper Curve.
$ gosper-curve-cli 3 --inverse

$ gosper-curve-cli <n> --rotate=<left|right|standard>
The optional --rotate param rotates the Gosper Curve. Supported values:
left: Rotate left 120 degreesright: Rotate right 120 degreesstandard: No rotation (default)$ gosper-curve-cli 3 --rotate=right

$ gosper-curve-cli 3 --rotate=left

$ gosper-curve-cli <n> --line=<bold|standard>
The optional --line param draws the Gosper Curve using different line types. Supported values:
bold: Draw using bold linesstandard: Draw using standard lines (default)$ gosper-curve-cli 3 --line=bold

By default, lines are drawn using long unicode slash characters (╱, ╲). To instead draw using standard slash characters (/, \ ), add the --slash param (or shorthand -s).
$ gosper-curve-cli <n> --slash
(May look better/worse on certain terminals)
FAQs
Print the Gosper Curve to the console!
The npm package gosper-curve-cli receives a total of 1 weekly downloads. As such, gosper-curve-cli popularity was classified as not popular.
We found that gosper-curve-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.