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

pageviews

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pageviews - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"name": "pageviews",
"version": "1.3.0",
"version": "1.3.1",
"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",

@@ -121,2 +121,13 @@ # pageviews.js

});
// Getting legacy pagecounts
pageviews.getAggregatedLegacyPagecounts({
project: 'en.wikipedia',
start: new Date(2008, 12, 1, 1),
end: new Date(2008, 12, 1, 2)
}).then(function(result) {
console.log(JSON.stringify(result, null, 2));
}).catch(function(error) {
console.log(error);
});
```

@@ -187,2 +198,10 @@

/**
* Given a date range between December 2007 and August 2016,
* returns a timeseries of pageview counts. You can filter by
* project and access method. You can choose between daily,
* hourly and monthly granularity as well.
*/
getAggregatedLegacyPagecounts
/**
* Given a project and a date range, returns a timeseries of unique devices

@@ -198,2 +217,3 @@ * counts. You can filter by access site and choose between daily and

- [@marcelrf](https://github.com/marcelrf)
- [@fdansv](https://github.com/fdansv)

@@ -200,0 +220,0 @@ # License

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