npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Setting Local Variables

Is there a way to get the value into a local variable?

I know in other languages, you can do “SET :X = CURRENT_TIME”.

Only way I’ve figured out how to do it so far is to read it like a table using “VALUES (CURRENT TIME)”.

I was just hoping that there was a more direct way.


This is a forum for npm, which is a node package manager. It is not a programming language. What context are you trying to set a local variable?