npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-flowengine-data-standardize-clean

v1.1.1

Published

A production-ready n8n Community Node for cleaning and transforming data without code. Includes fuzzy deduplication, phone/name/address parsing, text extraction, formatting, type conversion, and more.

Downloads

358

Readme

n8n-nodes-flowengine-data-standardize-clean

Stop writing Code Nodes to clean your data. Use this.

A production-ready n8n Community Node that cleans and transforms messy data without writing a single line of code. Built with zero runtime dependencies for maximum compatibility and verification compliance.

n8n Community Node License Zero Dependencies

The Problem

You're building automations in n8n, and your data is a mess:

  • Names like jOhN dOE instead of John Doe
  • Phone numbers in 15 different formats: (555) 000-1111, 555.000.1111, +1 555 000 1111
  • Duplicate contacts that are almost the same but not quite
  • Emails with random whitespace and uppercase letters
  • JSON with inconsistent key naming (firstName, first_name, FirstName)

The old way: Write complex JavaScript in Code Nodes, debug for hours, maintain spaghetti code.

The new way: Drop in the Data Cleaner node, configure in 30 seconds, done.

Installation

Via n8n Community Nodes

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-flowengine-data-standardize-clean
  4. Click Install

Manual Installation

# In your n8n installation directory
pnpm install n8n-nodes-flowengine-data-standardize-clean

Operations

1. Deduplicate (Fuzzy)

Remove duplicate records using intelligent fuzzy matching. Perfect for cleaning contact lists, product catalogs, or any dataset with near-duplicates.

How it works:

  • Uses Jaro-Winkler algorithm for short strings (names, emails)
  • Uses Levenshtein distance for longer text
  • Configurable similarity threshold (0.0 - 1.0)
  • Compares across multiple fields simultaneously

Example:

Input:
  { "name": "John Smith", "email": "[email protected]" }
  { "name": "Jon Smith", "email": "[email protected]" }   // Typo in name
  { "name": "Jane Doe", "email": "[email protected]" }

Output (threshold: 0.8):
  { "name": "John Smith", "email": "[email protected]" }
  { "name": "Jane Doe", "email": "[email protected]" }

Parameters: | Parameter | Description | Default | |-----------|-------------|---------| | Fields to Check | Comma-separated field names to compare | Required | | Fuzzy Threshold | Similarity threshold (0.0 - 1.0) | 0.8 | | Output Duplicate Info | Include metadata about removed duplicates | false |


2. Clean Phone Numbers

Format phone numbers to E.164 international standard (+15550001111). Works with any input format.

Handles:

  • (555) 000-1111+15550001111
  • 555.000.1111+15550001111
  • +44 20 7946 0958+442079460958
  • 07946 0958 (UK) → +447946095800

Parameters: | Parameter | Description | Default | |-----------|-------------|---------| | Phone Field | Field containing phone number | phone | | Default Country Code | Country code when not detected | 1 (US/Canada) | | Output Field | Save to different field (optional) | Same as input |


3. Smart Capitalization

Convert text to proper Title Case with intelligent handling of common patterns.

Examples:

  • jOhN dOEJohn Doe
  • ACME CORPORATIONAcme Corporation
  • mcdonald'sMcdonald's

Handles exceptions:

  • Preserves acronyms: IBM, NASA, CEO
  • Lowercase articles: The Lord of the Rings
  • Roman numerals: Henry VIII

Parameters: | Parameter | Description | Default | |-----------|-------------|---------| | Fields to Capitalize | Comma-separated field names | Required |


4. Normalize Email

Clean and standardize email addresses.

What it does:

  • Trims whitespace
  • Converts to lowercase
  • Corrects common domain typos (gmial.comgmail.com)

Example:

Parameters: | Parameter | Description | Default | |-----------|-------------|---------| | Email Field | Field containing email | email | | Output Field | Save to different field (optional) | Same as input |


5. Clean Object Keys

Transform all JSON keys to consistent naming convention.

Modes:

  • snake_case: firstNamefirst_name
  • camelCase: first_namefirstName

Features:

  • Recursively processes nested objects
  • Handles arrays of objects
  • Preserves values

Example (snake_case):

// Before
{ "firstName": "John", "contactInfo": { "phoneNumber": "555-1234" } }

// After
{ "first_name": "John", "contact_info": { "phone_number": "555-1234" } }

Parameters: | Parameter | Description | Default | |-----------|-------------|---------| | Key Format | Target case format | snake_case |

Why Zero Dependencies?

This node is built with zero runtime dependencies by design:

  1. Verification Ready: Meets n8n Community Node verification requirements
  2. Security: Smaller attack surface, no supply chain vulnerabilities
  3. Performance: No bloat from unused library features
  4. Compatibility: Works across all n8n versions
  5. Reliability: No breaking changes from upstream dependencies

All algorithms (Jaro-Winkler, Levenshtein, phone parsing, etc.) are implemented natively in TypeScript with comprehensive documentation.

Nested Field Support

All operations support dot notation for nested fields:

contact.personal.firstName
address.phone.mobile
user.emails[0]

Development

# Install dependencies
pnpm install

# Build the node
pnpm build

# Watch for changes
pnpm dev

# Lint and format
pnpm lint
pnpm format

Testing with n8n

# Link for local development
pnpm link --global

# In your n8n installation
pnpm link --global n8n-nodes-flowengine-data-standardize-clean

# Start n8n
n8n start

License

MIT - Use it however you want.

Contributing

Contributions are welcome! Please read our contributing guidelines and submit PRs to the GitHub repository.

Support


Built with care for the n8n community by FlowEngine.