# Crediting authors after forking a module

**URL:** https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546
**Category:** General
**Created:** [22 April 2021 13:30 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546 "2021-04-22T13:30:23Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)
#### Post date: [22 April 2021 13:30 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/1 "2021-04-22T13:30:23Z")

</div>

I have forked the node-red-node-pi-gpio module to port it to the Nvidia Jetson Nano. While I've made some extensive changes to the logic, it wouldn't have been possible if I had to start from scratch.

What is the proper/best practice method of crediting the original author? Is there such a field in the package.json file?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [22 April 2021 14:53 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/2 "2021-04-22T14:53:14Z")

</div>

The first thing you need to do is to check the license that should be with the node. I was going to look at it, but I can't find node-red-node-rpi-gpio.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [22 April 2021 15:11 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/3 "2021-04-22T15:11:53Z")

</div>

In the `package.json` file you can update the `authors` or `contributors` fields - [https://docs.npmjs.com/cli/v7/configuring-npm/package-json#people-fields-author-contributors](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#people-fields-author-contributors)

It would also be a courtesy to include an acknowledgement in your README.

---

<div class="post-metadata">

### Author: ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)
#### Post date: [22 April 2021 15:14 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/4 "2021-04-22T15:14:55Z")

</div>

> [@Colin](#):
>
> node-red-node-rpi-gpio

take a look at the rpi-gpio package.json file It has that information.

> <https://github.com/node-red/node-red-nodes/blob/master/hardware/PiGpio/package.json>

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [22 April 2021 15:19 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/5 "2021-04-22T15:19:21Z")

</div>

That is node-red-node-pi-gpio, not node-red-node-rpi-gpio.

In addition to @knolleary's comment I think you also have to include a copy of the original license and can't impose any restrictions on what that license says. Check the licence with the node and see what it says.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [22 April 2021 15:21 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/6 "2021-04-22T15:21:19Z")

</div>

> [@Colin](#):
>
> node-red-node-rpi-gpio

@Colin given node-red-node-rpi-gpio doesn't exist on npm and doesn't show up on a google search, I think we can probably assume its a typo and node-red-node-pi-gpio is the intended original module.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [22 April 2021 15:28 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/7 "2021-04-22T15:28:16Z")

</div>

I am sure you are right, but it could have been node-red-contrib-redplc-rpi-gpio.

---

<div class="post-metadata">

### Author: ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)
#### Post date: [22 April 2021 15:36 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/8 "2021-04-22T15:36:19Z")

</div>

```auto
"node-red" : {
        "nodes": {
            "rpi-gpio": "36-rpi-gpio.js"
        }

```

made me think I found the right one

---

<div class="post-metadata">

### Author: ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)
#### Post date: [22 April 2021 16:00 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/9 "2021-04-22T16:00:33Z")

</div>

Yes, sorry, typo on my part.

I need to change the author field to me since I wouldn't want questions going to Dave.

The license is Apache 2.0 which is pretty permissible so I don't think there's any issue there. I've been a Fedora packager for over 10 years and while I don't consider myself a license expert, I have been exposed to many (GPL, BSD, Apache, etc).

Adding something to the README is easy enough, I just wasn't sure if there was a best practice already established

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [22 April 2021 17:32 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/10 "2021-04-22T17:32:07Z")

</div>

just change me to a contributor 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [21 June 2021 17:32 UTC](https://discourse.nodered.org/t/crediting-authors-after-forking-a-module/44546/11 "2021-06-21T17:32:34Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
