From c6c8bb68b20e9547c3e197a21547cb1dc27a3c7b Mon Sep 17 00:00:00 2001 From: pemontto <939704+pemontto@users.noreply.github.com> Date: Fri, 30 May 2025 16:04:45 +1000 Subject: [PATCH 1/2] Fix commands for npm (#75) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bd3532..0707b31 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ These are the basic steps for working with the starter. For detailed guidance on 4. Open the project in your editor. 5. Browse the examples in `/nodes` and `/credentials`. Modify the examples, or replace them with your own nodes. 6. Update the `package.json` to match your details. -7. Run `npm lint` to check for errors or `npm lintfix` to automatically fix errors when possible. +7. Run `npm run lint` to check for errors or `npm run lintfix` to automatically fix errors when possible. 8. Test your node locally. Refer to [Run your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/) for guidance. 9. Replace this README with documentation for your node. Use the [README_TEMPLATE](README_TEMPLATE.md) to get started. 10. Update the LICENSE file to use your details. From e863c55657fcbe38fdd5fd5b49d68c85025fbc52 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 30 May 2025 10:34:51 +0100 Subject: [PATCH 2/2] Small tweaks to README and updated icon example (#76) --- README.md | 4 +++- nodes/HttpBin/HttpBin.node.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0707b31..c672021 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,14 @@ This repo contains example nodes to help you get started building your own custo To make your custom node available to the community, you must create it as an npm package, and [submit it to the npm registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry). +If you would like your node to be available on n8n cloud you can also [submit your node for verification](https://docs.n8n.io/integrations/creating-nodes/deploy/submit-community-nodes/). + ## Prerequisites You need the following installed on your development machine: * [git](https://git-scm.com/downloads) -* Node.js and pnpm. Minimum version Node 20. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL [here](https://github.com/nvm-sh/nvm). For Windows users, refer to Microsoft's guide to [Install NodeJS on Windows](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows). +* Node.js and npm. Minimum version Node 20. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL [here](https://github.com/nvm-sh/nvm). For Windows users, refer to Microsoft's guide to [Install NodeJS on Windows](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows). * Install n8n with: ``` npm install n8n -g diff --git a/nodes/HttpBin/HttpBin.node.ts b/nodes/HttpBin/HttpBin.node.ts index fb84212..0c7d5c2 100644 --- a/nodes/HttpBin/HttpBin.node.ts +++ b/nodes/HttpBin/HttpBin.node.ts @@ -5,7 +5,7 @@ export class HttpBin implements INodeType { description: INodeTypeDescription = { displayName: 'HttpBin', name: 'httpBin', - icon: 'file:httpbin.svg', + icon: { light: 'file:httpbin.svg', dark: 'file:httpbin.svg' }, group: ['transform'], version: 1, subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', @@ -15,6 +15,7 @@ export class HttpBin implements INodeType { }, inputs: [NodeConnectionType.Main], outputs: [NodeConnectionType.Main], + usableAsTool: true, credentials: [ { name: 'httpbinApi',