1.0.5 • Published 7 years ago

read-or-execute v1.0.5

Weekly downloads
5
License
X11
Repository
-
Last release
7 years ago

Read Or Execute

Read or execute a file to get a content stream

If a file is executable, run it, otherwise read it's contents.

Typically this is used for config files that can be either static or executable.

  • Options passed in are forwarded to the underlying child_process.spawn or fs.createReadFile.
  • Defaults to "utf8" encoding (unless set to null).
  • Async-function implementation. Underlying platform promisification via standard mz dependency.
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago