Skip to content
/ tager Public

A bunch of helpful tags for template strings.

License

Notifications You must be signed in to change notification settings

ljqx/tager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tager

A bunch of helpful tags for template strings.

Install

npm install tager

API

crlf => string

crlf`multi
line
string
`
// => 'multi\r\nline\r\nstring\r\n'

identity => string

identity`${1} template string`
// => 1 template string
// same as `${1} template string`

lf => string

lf`multi
line
string
`
// => 'multi\nline\nstring\n'

lines => string[]

lines`multi
line
string
`;
// => ['multi', 'line', 'string', '']

regexp => RegExp

regexp`\w+${1 + 1}*\node_modules/${'.bin'}`;
// => /\w+2*\node_modules\/.bin/

About

A bunch of helpful tags for template strings.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published