is-figma-url
v1.0.2
Published
Simple regex to check whether a string is a valid Figma live embed url
Downloads
118
Maintainers
Readme
is-figma-url
Simple regex to check whether a string is a valid Figma live embed url.
Install
npm install is-figma-url --save
Quick start
import isFigmaUrl from 'is-figma-url';
isFigmaUrl('https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File'); // true
isFigmaUrl('https://www.google.com/'); // false