The children's television network Nickelodeon is to curb the use of its characters on the food packaging of items that are deemed not healthy enough.