1.0.2 • Published 7 months ago

n8n-nodes-currency-cleaner v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

CurrencyCleaner Node for n8n

This repository contains the CurrencyCleaner node and helper functions for use with the n8n workflow automation tool. The node was initially based on the n8n-nodes-starter but has been extended with additional functionality to enhance its utility.

Features

CurrencyCleaner Node

The CurrencyCleaner node is designed to process and clean currency data in your workflows. It is particularly useful for:

  • Standardizing different currency formats.
  • Removing unwanted characters (e.g., symbols, commas, spaces).
  • Converting currency strings to a unified numerical format for easier processing in subsequent workflow steps.

Helpers

The Helpers.ts file includes utility functions that support the functionality of the CurrencyCleaner node. These functions ensure:

  • Seamless parsing of various currency formats.
  • Flexible handling of edge cases such as missing or malformed data.
  • Improved performance and reliability of the node.

Installation

To use this custom node in your n8n instance:

  1. Clone this repository or download the source code.
  2. Place the files in your n8n custom nodes directory (usually ~/.n8n/custom/nodes/).
  3. Restart your n8n instance.
  4. The CurrencyCleaner node will be available in your workflow editor.

Usage

  1. Add the CurrencyCleaner node to your workflow.
  2. Configure the input parameters:
    • Specify the field containing currency data.
    • Choose optional settings for format standardization and error handling.
  3. Connect the node to other workflow components to process the cleaned currency data.

Example Workflow

Here is an example of how you might use the CurrencyCleaner node:

  1. Input data: A list of transactions with currency amounts in various formats (e.g., $1,234.56, EUR 1234.56, 1.234,56 €).
  2. Use the CurrencyCleaner node to standardize these values into a consistent numerical format.
  3. Pass the cleaned data to other nodes for further processing, such as calculations or database updates.

Development

To extend or modify the functionality of the node:

  1. Install dependencies using pnpm:
    pnpm install
1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago