Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

meddelare-server

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meddelare-server - npm Package Compare versions

Comparing version 2.0.1 to 2.0.3

8

package.json
{
"name": "meddelare-server",
"version": "2.0.1",
"version": "2.0.3",
"description": "Install custom social share counters on your website with your own hosted solution, which only makes a single API request and loads minimal or zero assets to display the counters.",

@@ -32,4 +32,4 @@ "homepage": "https://meddelare.com/",

"engines": {
"node": "0.10.x",
"npm": "1.3.x"
"node": "^0.12.0 || ^4.0.0 || ^5.0.0 || ^6.0.0",
"npm": "^2.5.1 || ^3.0.0"
},

@@ -51,2 +51,2 @@ "license": "MIT",

}]
}
}

@@ -51,3 +51,3 @@ # [Meddelare](https://meddelare.com/) Social Buttons Standalone Node.js Server [meddelare-node-server](https://github.com/meddelare/meddelare-node-server)

- Test by accessing your local server on [http://localhost:5000/?networks=facebook,twitter,googleplus&url=https://meddelare.com](http://localhost:5000/?networks=facebook,twitter,googleplus&url=https://meddelare.com)
- Test by accessing your local server on [http://localhost:5000/?networks=facebook,twitter,googleplus&url=https%3A%2F%2Fmeddelare.com%2F](http://localhost:5000/?networks=facebook,twitter,googleplus&url=https%3A%2F%2Fmeddelare.com%2F)
- You can optionally push to a Heroku app to automatically deploy.

@@ -59,3 +59,3 @@

See this [example API call](https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=https://meddelare.com). The response is delivered as JSON, or JSONP if you specify a callback.
See this [example API call](https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=https%3A%2F%2Fmeddelare.com%2F). The response is delivered as JSON, or JSONP if you specify a callback.

@@ -94,3 +94,7 @@ ```json

<script>
$.ajax("https://d12cncu17l9pr5.cloudfront.net/?networks=facebook,twitter,googleplus&url=https://meddelare.com", {
var url = "https://meddelare.com/";
var encoded = encodeURIComponent(url);
var networks = ["facebook" , "twitter" , "googleplus"];
$.ajax("https://d12cncu17l9pr5.cloudfront.net/?networks=" + networks.join(",") + "&url=" + encoded, {
success: function (res, err) {

@@ -121,4 +125,11 @@ $.each(res, function (network, value) {

**Url (optional)**
Use the `url` parameter to specify the address which you want to retrieve the number of shares for, for example `url=https://meddelare.com`.
Use the `url` parameter to specify the address which you want to retrieve the number of shares for, for example `https://meddelare.com/`.
- The value needs to be [URL-encoded](http://en.wikipedia.org/wiki/URL_encoding).
- This prevents problems when looking up values for pages with, for example, parameters separated by `&`.
- For example `https://meddelare.com/` becomes `https%3A%2F%2Fmeddelare.com%2F` when using javascript: `encodeURIComponent("https://meddelare.com/")`.
- You can use your domain root, or a more specific url pointing to a specific page.
If you don't specify a `url` then the server will try to get the referring url's (HTTP `Referer` header) share count. This makes it easy to dynamically get the counts for the page currently open in the browser.

@@ -168,2 +179,2 @@

When using [meddelare-node-server](https://github.com/meddelare/meddelare-node-server), comply to the [MIT license](http://opensource.org/licenses/MIT).
When using [meddelare-node-server](https://github.com/meddelare/meddelare-node-server), comply to the [MIT license](https://opensource.org/licenses/MIT).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc