how to find in npm formal cordova plugins i used in PGB

  • 3
  • Idea
  • Updated 5 years ago
  • Under Consideration
Hi;
I am checking npm to see if I can migrate. I currently use the defualt PGB repository.
I use the 'formal' push notifications plugin located here: https://build.phonegap.com/plugins/3960
in NPM (where is very hard to find plugins) I found https://www.npmjs.com/package/cordova...
how do I know if this is the 'formal' replacement to what I've been using?
thanks!
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes

Posted 5 years ago

  • 3
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Good question.
Here you find npm plugins easier, but your question remains unanswered.
http://plugins.cordova.io/npm/index.h...
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@support,
this is a very good question I've been wondering about also.

Is there a transition map, or some device where we can determine pre-npm plugins and there new name in the npm world?

I know can (most of the time) trace the plugin via the authors name, but are there any thoughts on this?

TIA
Jesse
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
how do I know if this is the 'formal' replacement to what I've been using?

You'll find this guy @stevegill in it.

But anyway, this method of identification can be improved. Let me get someone up here to work around this.

Thanks for the feedback!.
(Edited)
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
yeah I dont think we need to look plugins by contributor.
we need a formal way to match between pgb repository and npm repository
Photo of Matt N

Matt N

  • 22 Posts
  • 0 Reply Likes
From what I can tell, all official plugins begin with "cordova-plugin-". Hope that helps narrow down your searches!
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
this is marked as answered but its not...
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
How about Idea -> Under Consideration? Sound good?

^_^
(Edited)
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
sounds better but I still think that if you guys want to make your life easier you should provide a way to map plugins between repos....
otherwise you'll probably get tons of these questions as more people port.
here's a great example:
https://www.npmjs.com/package/cordova...
this is not the official one but the name implies it is...
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
There should already be a translation table. After all, if you just use the old plugin's name (as published at pgb's repository) and simply add "source=npm", the app will build. Under the hood, PGB translates the plugin's name to the proper name as published at NPM.
This feature is not documented, but reported at this forum by denizens time after time.

It's THAT table that would come handy.
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
my feeling is that the transition is not handled properly...
but maybe its just me