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 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-applymap

v0.1.0

Published

A node to map values.

Downloads

43

Readme

n8n-nodes-applymap

This is an n8n community node. It lets you easily map data. For example an Id to a string value. Normally this would be done by using a merge or function/code node. This community node makes it a lot simpler.

If you find any issues with the node please open an issue on Github.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

You can map data and also provide a default value for when there was no value found in the mapping table. The first input is the data going through your n8n workflow. The second input is the mapping table. This table consists of a 3 fields:

  • mapName
  • input
  • output

The mapName is used in the parameters of the mapping, this makes it so you can have multiple mappings done in one go. For this it is important that every map has its unique name.

The input is the input value so for example an Id, to be mapped.

The output is the output value that has to replace the input value when it is found.

Each map is made by converting to string and then matching the values. This should make it easier to apply the maps in most cases. If there are any troubles with this please open an issue in github.

mappingTable

Keep in mind that this mapping table needs to be formatted exactly like this for it to work.

You can configure the node to do what you need it to do. An example is provided below.

example

Keep in mind that you do not use expressions for setting these values unless you have a specific reason to do so. Also keep in mind to use the correct Capitalization.

Compatibility

This node was developed and tested with n8n version 0.195.5

Resources

Version history

Only 1 version