UNPKG
@chec/cli
Version:
latest (1.3.0)
1.3.0
1.2.1
1.2.0
1.1.0
1.0.0
1.0.0-beta2
1.0.0-beta1
A command line interface for using the Chec API
github.com/chec/cli
chec/cli
@chec/cli
/
src
/
helpers
/
env-writer.js
10 lines
(7 loc)
•
213 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
fs =
require
(
'fs'
)
const
{parseFile} =
require
(
'key-value-file'
)
module
.
exports
.
create
=
async
filepath => {
// "Touch" the file
fs.
closeSync
(fs.
openSync
(filepath,
'a'
))
return
parseFile
(filepath) }