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-beta.1 to 1.0.0

2

package.json
{
"name": "dir-to-object",
"version": "1.0.0-beta.1",
"version": "1.0.0",
"description": "Builds an object from the files contained inside a directory.",

@@ -5,0 +5,0 @@ "main": "index.js",

const fs = require('fs');
const { join } = require('path');
const fields = ({ canAdd, dirPath }) =>
const dirToObject = ({ canAdd, dirPath }) =>
fs.readdirSync(dirPath).reduce((accumulator, fileName) => {

@@ -18,2 +18,2 @@ const filePath = join(dirPath, fileName);

module.exports = fields;
module.exports = dirToObject;

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