Skip to content

dy/is-svg-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Check if a string is an svg path data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published