Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
opt
/
alt
/
alt-nodejs8
/
root
/
lib
/
node_modules
/
npm
/
node_modules
/
qw
[ HOME ]
Exec
Submit
README.md
# qw Quoted word literals! ```js const qw = require('qw') const myword = qw` this is a long list of words` // equiv of: const myword = [ 'this', 'is', 'a', 'long', 'list', 'of', 'words' ] ``` You can embed vars in the usual way: ```js const mywords = qw`product ${23 * 5} also ${'escaping a string'}` // equiv of: const mywords = [ 'product', 23 * 5, 'also', 'escaping a string' ] ``` You can also embed vars inside strings: ```js const mywords = qw`product=${23 * 5} also "${'escaping a string'}"` // equiv of: const mywords = [ 'product=' + (23 * 5), 'also', '"escaping a string"' ] ``` ## DESCRIPTION This uses template strings to bring over this little common convenience from Perl-land.
Submit
Back
Folder Name
Submit
File Name
File Content
Submit
Name
Type
Size
Permission
Last Modified
Actions
.
dir
-
0755
2025-11-16 11:16:18
..
dir
-
0755
2025-11-16 11:16:18
LICENSE
file
752 B
0644
2022-12-15 05:17:50
README.md
file
706 B
0644
2022-12-15 05:17:50
package.json
file
1.24 KB
0644
2022-12-15 05:17:50
qw.js
file
1.02 KB
0644
2022-12-15 05:17:50