dir-to-object
Advanced tools
Comparing version 1.0.0-alpha.4 to 1.0.0-beta.1
{ | ||
"name": "dir-to-object", | ||
"version": "1.0.0-alpha.4", | ||
"version": "1.0.0-beta.1", | ||
"description": "Builds an object from the files contained inside a directory.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,7 +27,12 @@ # dir-to-object | ||
N.B.: `canAdd` is optional while `dirPath` is mandatory | ||
Where **config** is an object with the following properties: | ||
| name | type | example | required or optional | | ||
| ------- | ----------------------------- | ----------------------------------- | -------------------- | | ||
| canAdd | _function_: (data) => boolean | `data => data.resolve && data.type` | _optional_ | | ||
| dirPath | _string_ | `join(__dirname, 'foo')` | _required_ | | ||
## Contributing | ||
1. Fork it (<https://github.com/mattiaerre/dir-to-object/fork>) | ||
1. [Fork it](https://github.com/mattiaerre/dir-to-object/fork) | ||
2. Create your feature branch (`git checkout -b feature/fooBar`) | ||
@@ -34,0 +39,0 @@ 3. Commit your changes (`git commit -am 'Add some fooBar'`) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5422
45