github-api-tags-full
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -9,3 +9,3 @@ { | ||
"name": "github-api-tags-full", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Gets all tags with their respective commit for sorting from Github API", | ||
@@ -12,0 +12,0 @@ "main": "index.js", |
@@ -21,5 +21,5 @@ # github-api-tags-full | ||
This module uses the github module for accessing the Github API: | ||
```` | ||
var GitHubApi = require('github'), | ||
githubTags = require('github-api-tags-full'); | ||
```javascript | ||
var GitHubApi = require('github'), | ||
GithubApiTags = require('github-api-tags-full'); | ||
@@ -30,3 +30,4 @@ var github = new GitHubApi({ | ||
githubTags({ user: 'golang', repo: 'go' }, github) | ||
var gat = new GithubApiTags(); | ||
gat.fetch({ user: 'golang', repo: 'go' }, github) | ||
.then(function(tags) { | ||
@@ -41,6 +42,6 @@ console.log(tags); | ||
```` | ||
```` | ||
var GitHubApi = require('github'), | ||
moment = require('moment'), | ||
githubTags = require('github-api-tags-full'); | ||
```javascript | ||
var GitHubApi = require('github'), | ||
GithubApiTags = require('github-api-tags-full'), | ||
moment = require('moment'); | ||
@@ -51,3 +52,4 @@ var github = new GitHubApi({ | ||
githubTags({ user: 'golang', repo: 'go' }, github) | ||
var gat = new GithubApiTags(); | ||
gat.fetch({ user: 'golang', repo: 'go' }, github) | ||
.then(function(tags) { | ||
@@ -68,1 +70,3 @@ var tagsSorted = tags.sort(byAuthorDateAsc).reverse(); // descending | ||
```` | ||
A more comprehensive example with progress indicator and http replay can be found in example.js. |
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
8374
68