UNPKG
sed-lite
Version:
latest (1.1.0)
1.1.0
1.0.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
`sed` compiler for JavaScript
github.com/kawanet/sed-lite
kawanet/sed-lite
sed-lite
/
types
/
sed-lite.d.ts
10 lines
(8 loc)
•
230 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** * sed-lite * *
@param
{
string
} def "s/match/replace/flag" *
@returns
{
Function
} (str => str.replace(/match/flag, "replace") *
@throws
{
SyntaxError
} */
export
declare
const
sed
:
(
def
:
string
) =>
(
str
:
string
) =>
string
;