New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

directory-tree-promise

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directory-tree-promise - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.travis.yml

4

package.json
{
"name": "directory-tree-promise",
"version": "1.0.0",
"description": "Asynchronously return a directory tree as a JS object",
"version": "1.0.1",
"description": "Asynchronously return a directory tree as a JS object",
"license": "MIT",

@@ -6,0 +6,0 @@ "author": "Danny Navarro (dannynavarro.tech)",

@@ -1,2 +0,2 @@

##directory-tree-promise
##directory-tree-promise [![Build Status](https://travis-ci.org/dannav/directory-tree-promise.svg?branch=master)](https://travis-ci.org/dannav/directory-tree-promise)

@@ -13,3 +13,3 @@ ### Install

const {directoryTree} = require('../lib/directory-tree')
const tree = directoryTree('./example')
const tree = await directoryTree('./example')
```

@@ -44,3 +44,3 @@

const {directoryTree} = require('../lib/directory-tree')
const tree = directoryTree('./example', async file => {
const tree = await directoryTree('./example', async file => {
file.content = await someFunctionToReadFileData(file.path)

@@ -68,3 +68,3 @@ return file

const {directoryTree} = require('../lib/directory-tree')
const tree = directoryTree(process.cwd())
const tree = await directoryTree(process.cwd())
tree.children[0].isFile() // true or false

@@ -71,0 +71,0 @@ ```

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