Function to format string in node.js

Is there something in node.js to format string like this:

format("HEY! my name is #{name} and I live at #{place}", {name: "joe", "place":"london"})

Answers


Not directly, but if you use CoffeeScript you can use that syntax:

name = "joe"
place = "london"

console.log("HEY! my name is #{name} and i live at #{place}")

Need Your Help

.htaccess mod_rewrite parameter to non existing subdir

.htaccess mod-rewrite subdirs

I would like to extend my existing rewrite rules to rewrite a special url parameter to a non existing subdir.

color key legend in r

r graphics legend legend-properties color-key

I am trying hard to figure out to add color gridient label to my plot ( link to previous question). Sorry for keep asking but this is maximum I could push me forward.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.