n8n-code-javascript
यह क्या करती है
यह गाइड आपको n8n, एक automation tool, में JavaScript कोड लिखने में मदद करता है। यह ज़्यादा जटिल प्रोग्रामिंग कामों के लिए उपयोगी है, जिन्हें n8n के बाकी tools नहीं संभाल पाते।
कब इस्तेमाल करें
- ✓जब जटिल गणना करनी हो या अपना custom business logic लागू करना हो।
- ✓जब जटिल structure वाले API responses को प्रोसेस करना हो।
- ✓अलग-अलग स्रोतों के डेटा को उन्नत तरीके से group करने के लिए।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/n8n-code-javascript/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“n8n में input डेटा को बदलने के लिए JavaScript का इस्तेमाल कैसे करूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
n8n आपको डेटा को बदलने के लिए अपना JavaScript कोड लिखने देता है। इसमें पिछले steps की जानकारी तक पहुँचने और दूसरी सेवाओं को requests भेजने के लिए खास tools मिलते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
JavaScript Code Node
Expert guidance for writing JavaScript code in n8n Code nodes.
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use Code Node
Use Code node when:
- ✅ Complex transformations requiring multiple steps
- ✅ Custom calculations or business logic
- ✅ Recursive operations
- ✅ API response parsing with complex structure
- ✅ Multi-step conditionals
- ✅ Data aggregation across items
Consider other nodes when:
- ❌ Simple field mapping → Use Set node
- ❌ Basic filtering → Use Filter node
- ❌ Simple conditionals → Use IF or Switch node
- ❌ HTTP requests only → Use HTTP Request node
Code node excels at: Complex logic that would require chaining many simple nodes
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
अक्सर पूछे जाने वाले सवाल
Code node कब इस्तेमाल करें, बाकी nodes की जगह?
जटिल multi-step transformations, custom calculations, recursive logic, जटिल API responses को parse करने, multi-step conditions या data aggregation के लिए Code node इस्तेमाल करें। फ़ील्ड मैपिंग या सिंपल filtering जैसे आसान कामों के लिए 'Set', 'Filter' या 'IF' जैसे nodes इस्तेमाल करें।
'$input', '$json', '$node' और '$helpers' क्या हैं?
ये n8n के दिए हुए खास shortcuts हैं, ताकि आपका JavaScript कोड input डेटा, पिछले nodes की जानकारी और requests भेजने या dates के साथ काम करने वाले उपयोगी functions आसानी से एक्सेस कर सके।
क्या यह गाइड कोड टेस्ट करने की ज़रूरत खत्म कर देता है?
नहीं। यह गाइड मार्गदर्शन देती है, लेकिन आपको अपने कोड को अपने माहौल में जाँचना और टेस्ट करना ही होगा, ताकि पक्का हो कि वह सही और सुरक्षित तरीके से चलता है।
जानकारी
लेखक का मूल विवरण
Write JavaScript code in n8n Code nodes. Use when writing JavaScript in n8n, using $input/$json/$node syntax, making HTTP requests with $helpers, working with dates using DateTime, troubleshooting Code node errors, or choosing between Code node modes.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #5268
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।