Socket
Socket
Sign inDemoInstall

cubify

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cubify

transform path d attribute into list of cubic bezier segment


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
41.1 kB
Created
Weekly downloads
 

Readme

Source

cubify

Convert d of SVG path into list of cubic bezier curves. Source code adopted from Snap.svg ( specifically path.js ), rearranged specific for this particular usage.

Formally @zbryikt/pathconvert, refactored and transferred here.

Usage

Install:

npm install cubify

use require for Node.js or include with <script> in website:

<script src="path-to-cubify-dist/index.js"></script>

require("cubify"); /* for Node.js */
result = cubify(d);

License

The original source code is released under Apache License

The adopted code is released under MIT License.

FAQs

Last updated on 19 Jan 2022

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