Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "pageviews", | ||
"main": "pageviews", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"homepage": "https://github.com/tomayac/pageviews.js", | ||
@@ -6,0 +6,0 @@ "authors": [ |
{ | ||
"name": "pageviews", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A lightweight JavaScript client library for the Wikimedia Pageviews API for Wikipedia and various of its sister projects for Node.js and the browser.", | ||
@@ -5,0 +5,0 @@ "main": "pageviews.js", |
@@ -31,4 +31,4 @@ # pageviews.js | ||
project: 'en.wikipedia', | ||
start: '20151201', // YYYYMMDD string or Date object | ||
end: '20151202' // YYYYMMDD string or Date object | ||
start: new Date(new Date() - 3 * 24 * 60 * 60 * 1000), // YYYYMMDD string or Date object | ||
end: new Date(new Date() - 2 * 24 * 60 * 60 * 1000) // YYYYMMDD string or Date object | ||
}).then(function(result) { | ||
@@ -44,4 +44,4 @@ console.log(JSON.stringify(result, null, 2)); | ||
project: 'en.wikipedia', | ||
start: '20151201', // YYYYMMDD string or Date object | ||
end: '20151202' // YYYYMMDD string or Date object | ||
start: new Date(new Date() - 3 * 24 * 60 * 60 * 1000), // YYYYMMDD string or Date object | ||
end: new Date(new Date() - 2 * 24 * 60 * 60 * 1000) // YYYYMMDD string or Date object | ||
}).then(function(result) { | ||
@@ -104,3 +104,3 @@ console.log(JSON.stringify(result, null, 2)); | ||
projects: ['en.wikipedia', 'de.wikipedia'], // Plural | ||
date: '20150101', // YYYYMMDD string or Date object | ||
date: new Date(new Date() - 2 * 24 * 60 * 60 * 1000), // YYYYMMDD string or Date object | ||
limit: 2 // Limit to the first n results | ||
@@ -112,3 +112,2 @@ }).then(function(result) { | ||
}); | ||
``` | ||
@@ -133,4 +132,4 @@ | ||
project: 'en.wikipedia', | ||
start: '20151201', // YYYYMMDD string or Date object | ||
end: '20151202' // YYYYMMDD string or Date object | ||
start: new Date(new Date() - 3 * 24 * 60 * 60 * 1000), // YYYYMMDD string or Date object | ||
end: new Date(new Date() - 2 * 24 * 60 * 60 * 1000) // YYYYMMDD string or Date object | ||
}).then(function(result) { | ||
@@ -137,0 +136,0 @@ console.log(JSON.stringify(result, null, 2)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50006
190