Skip to content

dailyrandomphoto/read-first-file

Repository files navigation

read-first-file

NPM Version LICENSE Build Status code style: prettier

Read the first 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.

About

Read the frist file from a directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published