Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read Files Sync License NPM version Dependency Status Build Status Coverage Status

Synchronously read files from a directory.

Install

npm i @cloudcmd/read-files-sync

readFilesSync(path[, mode])

  • path string - path to a directory
  • mode string - mode
const readFilesSync = require('@cloudcmd/read-files-sync');

readFilesSync('./fixture', 'utf8');
// returns
{
    a: 'hello',
    b: 'world',
}

readFilesSync(path[, names, mode])

  • path string - path to a directory
  • names array - file names to read
  • mode string - mode
readFilesSync('./fixture', ['a'], 'utf8');
// returns
{
    a: 'hello',
}

Related

License

MIT

About

synchronously read files from a directory

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages