is-svg-path

1.0.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    223,077
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    223,077
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i is-svg-path

Weekly Downloads

223,078

Version

1.0.2

License

MIT

Last publish

Collaborators

  • dfcreative