read-first-file

0.0.4 • Public • Published

read-first-file

NPM Version LICENSE Build Status code style: prettier

Read the frist file from a directory.

Installation

npm install read-first-file

Usages

const readfirst = require("read-first-file");

readfirst("/foo/bar/", {
  onFileContent: function (filename, content) {
    console.log(content);
  },
});

Related

License

Copyright (c) 2020 dailyrandomphoto. Licensed under the MIT license.

Package Sidebar

Install

npm i read-first-file

Weekly Downloads

19

Version

0.0.4

License

MIT

Unpacked Size

4.79 kB

Total Files

4

Last publish

Collaborators

  • dailyrandomphoto