Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Latest commit

 

History

History

remap

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

remap function

remap() will replace existing namespaces with new ones based on the provided configuration.

configuration

remap({"ns_map": {"foo":"bar"}})

example

message in

{
    "namespace": "foo",
    {
        "_id": 0,
        "name": "transporter",
        "type": "function",
        "count": 10
    }
}

config

remap({"ns_map": {"foo":"bar"}})

message out

{
    "namespace": "bar",
    {
        "_id": 0,
        "name": "transporter",
        "type": "function",
        "count": 10
    }
}