# Is there a simple way to generate a custom node from .js file

**URL:** <https://discourse.nodered.org/t/is-there-a-simple-way-to-generate-a-custom-node-from-js-file/22096>\
**Category:** General\
**Created:** [22 February 2020 14:38 UTC](https://discourse.nodered.org/t/is-there-a-simple-way-to-generate-a-custom-node-from-js-file/22096 "2020-02-22T14:38:28Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 February 2020 13:28 UTC](https://discourse.nodered.org/t/is-there-a-simple-way-to-generate-a-custom-node-from-js-file/22096/7 "2020-02-23T13:28:17Z")

</div>

Thanks to @knolleary for pointing out how to do the export.  
 ![Screen Shot 2020-02-23 at 8.27.25 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/019a816e466c48d9c2a8071c51f1912e57897489.png)

and you will get this:

```auto
// name: Lower case
// outputs: 1

msg.payload = msg.payload.toLowerCase();
return msg;

```

---

_[View the full topic](https://discourse.nodered.org/t/is-there-a-simple-way-to-generate-a-custom-node-from-js-file/22096)._
