This package has been deprecated

Author message:

This package is no longer maintained. Use at your own risk.

data-dir

1.2.6 • Public • Published

data-dir

GitHub Workflow Status npm version Codecov node-current license MIT

Read data from json and yaml files recursively


Install

npm install data-dir
// or
yarn add data-dir

Uses

For each file the filename becomes the key and data from file becomes value.

const dataDir = require('data-dir')
let obj = dataDir('dir-with-nested-yaml-json') // returns combined data

Dependents (1)

Package Sidebar

Install

npm i data-dir

Weekly Downloads

6

Version

1.2.6

License

MIT

Unpacked Size

8.9 kB

Total Files

12

Last publish

Collaborators

  • mohitsingh