is-svg-path
Detect if string an SVG path
Last updated 8 years ago by dfcreative .
MIT · Repository · Bugs · Original npm
$ cnpm install is-svg-path 
SYNC missed versions from official npm registry.

is-svg-path build

Test if a string is an SVG path.

npm install is-svg-path

const isPath = require('is-svg-path')

isPath('M0 0L10 20 20 0Z') //true
isPath('M00Z') //false
isPath('xyz') //false

It does not validate path data nor covers edge cases like 'H0' etc., but rather detects path in real world.

Current Tags

  • 1.0.2                                ...           latest (8 years ago)

1 Versions

  • 1.0.2                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org