░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/usr/lib/node_modules/npm/node_modules/qw
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: 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.
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 LICENSE
?
752 B
2021-03-10 14:36
EDIT
📄 package.json
JSON
1.2 KB
2021-03-10 14:36
EDIT
📄 qw.js
JS
1 KB
2021-03-10 14:36
EDIT
📄 README.md
MD
706 B
2021-03-10 14:36
EDIT