flickr-following
Advanced tools
Sorry, the diff of this file is not supported yet
+16
| A="$1" | ||
| echo '{ | ||
| "name": "'"$A"'", | ||
| "version": "2.0.0", | ||
| "description": "", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "author": "", | ||
| "license": "ISC" | ||
| }' > package.json | ||
| npm publish | ||
+5
-23
| { | ||
| "name": "flickr-following", | ||
| "version": "0.0.1", | ||
| "description": "List the people given user follows on Flickr", | ||
| "version": "2.0.0", | ||
| "description": "", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "node test" | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "keywords": [ | ||
| "flickr", | ||
| "photos", | ||
| "photography", | ||
| "api", | ||
| "client" | ||
| ], | ||
| "repository": { | ||
| "url": "git@github.com:npm-flickr/flickr-following.git", | ||
| "type": "git" | ||
| }, | ||
| "author": "azer", | ||
| "license": "BSD", | ||
| "dependencies": { | ||
| "flickr-client": "0.0.x" | ||
| }, | ||
| "devDependencies": { | ||
| "with-env": "^0.1.0", | ||
| "prova": "^1.11.1" | ||
| } | ||
| "author": "", | ||
| "license": "ISC" | ||
| } |
Sorry, the diff of this file is not supported yet
-17
| var createClient = require("flickr-client"); | ||
| var client; | ||
| module.exports = setup; | ||
| function setup (options) { | ||
| client = createClient(options); | ||
| return following; | ||
| } | ||
| function following (userId, callback) { | ||
| client('contacts.getPublicList', { user_id: userId }, function (error, response) { | ||
| if (error) return callback(error); | ||
| callback(undefined, response.contacts.contact); | ||
| }); | ||
| } |
-35
| ## flickr-following | ||
| List the people given user follows on Flickr | ||
| ## Install | ||
| ```bash | ||
| $ npm install flickr-following | ||
| ``` | ||
| ## Usage | ||
| ```js | ||
| var following = require('flickr-following')({ | ||
| key: 'api-key' | ||
| }) | ||
| following('user-id', function (error, users) { | ||
| users.length | ||
| // => 400 | ||
| users[0] | ||
| { "nsid": "49575362@N05", "username": "**mog**", "iconserver": "3770", "iconfarm": 4, "ignored": 0, "rev_ignored": 0 } | ||
| }) | ||
| ``` | ||
| [flickr-client](http://github.com/npm-flickr/flickr-client) can be passed to avoid repeating auth options: | ||
| ```js | ||
| var client = require('flickr-client')({ | ||
| key: 'api-key' | ||
| }); | ||
| var following = require('flickr-following')(client) | ||
| ``` |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3644
123.42%0
-100%0
-100%3
-25%0
-100%3
50%2
100%0
-100%1
Infinity%2
Infinity%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed