Qw

qw

Quoted word literals!

qw use template strings to bring over this little common convenience from Perl-land.

Get it: npm install qw

_Sample usage:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
const qw = require("qw")

qw `
this
shall
break
into
an array`

// ^ ["this", "shall", "break", "into", "an", "array"]

qw `also xpression: ${40+2}`

// ^ ["also", "expression:", 42]

GIT FTW!

qw.gif

Suggest a module

Comments