0.0.4 • Published 4 years ago

read-first-file v0.0.4

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

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.