diff --git a/README.md b/README.md index 2bd3532..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 @@ -31,7 +33,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. 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',