Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeroenvdb/party-pooper
Match URLs with their thirdparty provider
https://github.com/jeroenvdb/party-pooper
Last synced: about 2 months ago
JSON representation
Match URLs with their thirdparty provider
- Host: GitHub
- URL: https://github.com/jeroenvdb/party-pooper
- Owner: JeroenVdb
- Created: 2015-05-29T17:45:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-09T12:18:09.000Z (over 9 years ago)
- Last Synced: 2023-07-31T21:09:32.232Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 238 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Party Pooper
Get meta data about (thirdparty) requests. We return a name and category if a thirdparty provider match is found.
```javascript
var partyPooper = require('party-pooper');partyPooper.run('http://connect.facebook.net/en_US/fbds.js');
/*
Returns
{
"id": "facebook",
"name": "Facebook",
"matchUrls": ["^(https|http|):\/\/(.+)\\.facebook\\.(com|net)", "^(https|http|)(:\/\/|)(www.|)fbstatic-a.akamaihd.net"],
"category": "Social"
}
*/partyPooper.run('http://unknown-provider.net/somethingSomething.js');
/*
Returns
{
"id": "unknown-provider.net",
"name": "unknown-provider.net",
"matchUrls": ["unknown-provider.net"],
"category": "Unknown"
}
*/
```