New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

greek-cross-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greek-cross-cli

Print the Greek Cross Fractal to the console!

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

greek-cross-cli

Print the Greek Cross Fractal to the console!

What greek-cross-cli prints to the console

npm version bundle size downloads license

Why the console? Because it's the cool way.

See All Fractals in the fractals-cli project.

Usage

Via npx:

$ npx greek-cross-cli <n>
$ npx greek-cross-cli <n> [size] [options]

where n >= 0 and size >= n (if provided).

Via Global Install

$ npm install --global greek-cross-cli
$ greek-cross-cli <n>
$ greek-cross-cli <n> [size] [options]

where n >= 0 and size >= n (if provided).

Via Import

$ npm install greek-cross-cli

then:

const greek_cross = require('greek-cross-cli');
console.log(greek_cross.create(<n>);
console.log(greek_cross.create(<n>, { 
    size: <number>, 
    line: <bold|double|standard> 
});

The config params are optional.

Options

Recursive Step

$ greek-cross-cli <n>

The first param <n> is the recursive step. <n> should be an integer greater than or equal to 0.

Examples:

$ greek-cross-cli 3

What greek-cross-cli prints to the console

$ greek-cross-cli 4

What greek-cross-cli prints to the console

Size

$ greek-cross-cli <n> [size]

The optional [size] param allows the Greek Cross fractal to be drawn at larger sizes. [size] should be an integer greater than or equal to <n>. Including size will draw a Greek Cross fractal of <n> recursive steps the size of a Greek Cross fractal with [size] recursive steps.

Example:

$ greek-cross-cli 2 4

What greek-cross-cli prints to the console

Line Type

$ greek-cross-cli <n> --line=<bold|double|standard>

The optional --line param draws the Greek Cross fractal using different line types. Supported values:

  • bold: Draw using bold lines
  • double: Draw using double lines
  • standard: Draw using standard lines (default)

Examples:

$ greek-cross-cli 4 --line=bold

What greek-cross-cli prints to the console

$ greek-cross-cli 4 --line=double

What greek-cross-cli prints to the console

Main Project

Fractal Shapes

Fractal Patterns

Space Filling Curves

License

Keywords

Greek Cross

FAQs

Package last updated on 25 Feb 2023

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