is-figma-url
Version:
Simple regex to check whether a string is a valid Figma live embed url
19 lines (12 loc) • 965 B
Markdown
is-figma-url [](https://circleci.com/gh/nagelflorian/is-figma-url/tree/master) [](https://www.npmjs.com/package/is-figma-url) [](https://codeclimate.com/github/nagelflorian/is-figma-url/maintainability) [](https://codeclimate.com/github/nagelflorian/is-figma-url/test_coverage)
Simple regex to check whether a string is a valid [Figma live embed](https://www.figma.com/platform) url.
# Install
```
npm install is-figma-url --save
```
# Quick start
```js
import isFigmaUrl from 'is-figma-url';
isFigmaUrl('https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File'); // true
isFigmaUrl('https://www.google.com/'); // false
```