UNPKG
b-e-m
Version:
latest (1.0.1)
1.0.1
1.0.0
Typographically pleasing syntax for BEM
github.com/fredericmarx/b-e-m
fredericmarx/b-e-m
b-e-m
/
index.js
16 lines
(11 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
;
var
t;
function
insertUnderscores
(
input
) {
return
input.
replace
(
'—'
,
'__'
); }
function
insertDashes
(
input
) {
return
input.
replace
(
'–'
,
'--'
); }
module
.
exports
=
function
(
input
) {
return
insertUnderscores
(
insertDashes
(input)); }