Github JSON Dependencies Linker

jerone
2015-03-25T18:19:29Z

Linkify all dependencies found in an JSON file.

Github JSON Dependencies Linker (abandoned)

Description

Linkify all dependencies found in an JSON file.

The following JSON schemes are supported:

NPM - package.json & npm-shrinkwrap.json

Bower - bower.json

NuGet - project.json

Atom - package.json

In the JSON file it will search for the following dependency keys:

dependencies

devDependencies

peerDependencies

bundleDependencies

bundledDependencies

packageDependencies

optionalDependencies

Screenshot

Compatible

Tampermonkey on Mozilla Firefox desktop.

Version History

0.3.2

🐛 Fix broken icon url (#146).

0.3.1

Fixed recognizing JSON content.

0.3.0

Added support for Atom for packageDependencies.

0.2.0

Module name preceding a colon is never a key.

Added support for npm-shrinkwrap.json.

Fetching module names is now recursive.

0.1.0

Initial version.

Test cases

https://github.com/jerone/PackageSize/blob/master/package.json (multiple package.json dependencies);

https://github.com/npm/npm/tree/07f020a09e94ae393c67526985444e128ef6f83c/test/disabled/bundlerecurs/package.json

https://github.com/npm/npm/tree/07f020a09e94ae393c67526985444e128ef6f83c/test/packages/npm-test-optional-deps/package.json (optionalDependencies & different semver);

https://github.com/npm/npm/tree/07f020a09e94ae393c67526985444e128ef6f83c/test/packages/npm-test-bundled-git/package.json (git semver & bundledDependencies);

https://github.com/npm/npm/tree/07f020a09e94ae393c67526985444e128ef6f83c/test/packages/npm-test-shrinkwrap/npm-shrinkwrap.json (npm-shrinkwrap.json);

https://github.com/npm/npm/tree/07f020a09e94ae393c67526985444e128ef6f83c/test/packages/npm-test-url-dep/package.json (url semver);

https://github.com/aspnet/MusicStore/blob/8ce50e3fb34cbfc73537b9cf995fce3608c007fa/samples/MusicStore/project.json (ASP.NET project.json with COMMENTS);

https://github.com/atom/atom/blob/master/package.json (Atom package.json packageDependencies atomShellVersion);

https://github.com/suda/toolbar-main/blob/master/package.json (Atom package.json packageDependencies engines.atom);

Dependencies

Part of sindresorhus module strip-json-comments is used.

External links

Greasy Fork

OpenUserJS