1.26.0 • Published 7 months ago
semantic-url-parser v1.26.0
semantic-url-parser 🗂️
Extracts content information from known URL patterns.
import {
extractContentInfoFromUrl,
} from 'semantic-url-parser';
extractContentInfoFromUrl('https://youtu.be/8Qn_spdM5Zg?t=5');
// {
// contentType: 'VIDEO',
// videoId: '8Qn_spdM5Zg',
// site: 'YOUTUBE',
// url: 'https://www.youtube.com/watch?v=8Qn_spdM5Zg'
// }
extractContentInfoFromUrl('https://soundcloud.com/strangehumman/kyoto-2?utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing');
// {
// contentType: 'AUDIO_TRACK',
// audioTrackId: 'kyoto-2',
// username: 'strangehumman',
// url: 'https://soundcloud.com/strangehumman/kyoto-2',
// }
Supported Sites
- https://apps.apple.com/
- https://behance.net/
- https://canva.com/
- https://codepen.io/
- https://docs.google.com/
- https://dribbble.com/
- https://drive.google.com/
- https://dropbox.com/
- https://figma.com/
- https://fiverr.com/
- https://github.com/
- https://instagram.com/
- https://linkedin.com/
- https://linktr.ee/
- https://loom.com/
- https://medium.com/
- https://music.apple.com/
- https://pinterest.com/
- https://play.google.com/
- https://soundcloud.com/
- https://spotify.com/
- https://tiktok.com/
- https://twitch.tv/
- https://twitter.com/
- https://upwork.com/
- https://vimeo.com/
- https://youtube.com/
Adding New Sites
- Update
SiteContentInfo
- Update
siteContentRules
- Update "Supported Sites" documentation
1.26.0
7 months ago
1.25.1
1 year ago
1.25.0
1 year ago
1.24.0
1 year ago
1.23.0
1 year ago
1.22.0
1 year ago
1.21.0
1 year ago
1.20.0
1 year ago
1.19.0
1 year ago
1.18.0
1 year ago
1.17.0
1 year ago
1.16.0
1 year ago
1.15.0
1 year ago
1.14.0
1 year ago
1.13.0
1 year ago
1.12.0
1 year ago
1.11.0
1 year ago
1.10.0
1 year ago
1.9.0
1 year ago
1.8.0
1 year ago
1.7.0
1 year ago
1.6.0
1 year ago
1.5.0
1 year ago
1.4.0
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.1
1 year ago