Permalink
Browse files

cpan-what_depends_on_x: what distributions have a given module as dep?

  • Loading branch information...
1 parent 5ee39dd commit 4be7fa719095142c23f4ba3461ed3d428f19fa48 @trapd00r committed Aug 22, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 cpan-what_depends_on_x
View
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+curl -s -XPOST api.metacpan.org/v0/release/_search -d '{
+ "query": {
+ "match_all": {}
+ },
+ "filter": {
+ "term": {
+ "release.dependency.module": "Term::ExtendedColor"
+ }
+ }
+}' \
+ | json_deparse \
+ | grep distribution \
+ | perl -pe 's/^\s+//, s/[",]+//g' \
+ | awk '{print $3}' \
+ | sort -u \
+ | uniq

0 comments on commit 4be7fa7

Please sign in to comment.