UNPKG
edit-string
Version:
latest (1.1.6)
2.0.1
2.0.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
edit a string in $EDITOR
jdxcode/edit-string
edit-string
/
README.md
14 lines
(11 loc)
•
176 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
edit-
string
=========== ```js
const
edit = require(
'edit-string'
)
async
function
run
()
{
// open 'foo' in $EDITOR
let
s =
await
edit(
'foo'
) console.dir(s) } run() ```