Socket
Book a DemoInstallSign in
Socket

cubify

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

cubify

transform path d attribute into list of cubic bezier segment

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
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

Package last updated on 19 Jan 2022

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