is-svg-path
1.0.2 • Public • Published is-svg-path
Test if a string is an SVG path.
const isPath = require('is-svg-path')
isPath('M0 0L10 20 20 0Z')
isPath('M00Z')
isPath('xyz')
It does not validate path data nor covers edge cases like 'H0'
etc., but rather detects path in real world.
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.2
223,077
Version History
Package Sidebar
Install
Weekly Downloads