Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dir-to-object

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dir-to-object - npm Package Compare versions

Comparing version 1.0.0-alpha.4 to 1.0.0-beta.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc