Socket
Socket
Sign inDemoInstall

stripes-maker

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stripes-maker

Node.js stripe pattern generator and maker. It can create multi-line static and animated SVG stripe patterns.


Version published
Maintainers
1
Created

Readme

Source

ミ☆ Stripes Maker ☆彡

GitHub package.json version NPM

Node.js stripe pattern generator and maker. It can create multi-line static and animated SVG stripe patterns.

example.svg

Table of Contents

How to use

  1. Install the module using npm: npm install stripes-maker
  2. Edit stripes.config.js file.
  3. Run npm start
  4. The output SVG file will be in the './out/' folder.

stripes.config.js

This is an example stripes configuration file that will create an SVG file with four stripes.

const config = {
    out: './out/example.svg', // the pass to the output file
    width: 300, // SVG width
    height: 300, // SVG height
    bgColor: '#fff', // SVG background color
    lineRotation: 45, // stripes rotation angle in degrees

    // optional animation -----------
    animationType: 4, // linear animation - see types list below
    animationDuration: 30, // seconds
    
    // the list of stripes ----------
    stripes: [
        {
            color: '#505050',
            size: 20,
        },
        {
            color: '#92CBFA',
            size: 10,
        },
        {
            color: '#AB3C83',
            size: 20,
        },
        {
            color: '#ffffff',
            size: 10,
        }
    ]
};

Animation Types

There are four possible types of animation that can be specified in the configuration file.

  • NoAnimation = 1
  • RotateClockWise = 2
  • RotationCounterClockwise = 3
  • Linear = 4

How to run from another folder

The script can also be run globally using the following command:

stripes-maker

You can also pass another configuration file:

stripes-maker another.config.js

Keywords

FAQs

Last updated on 17 Apr 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc