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

fs-inspect

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-inspect - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "fs-inspect",
"version": "1.0.0",
"version": "1.0.1",
"description": "directory tree scanner for Node.js",

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

@@ -21,6 +21,7 @@ # fs-inspect

import { createInspector, filterByExtension } from 'fs-inspect';
import { homedir } from 'os';
async function main() {
const { search } = createInspector({ filter: filterByExtension(['png', 'jpg'])});
const imageFiles = await search('~/Pictures');
const imageFiles = await search(`${ homedir() }/Pictures`);
}

@@ -43,2 +44,3 @@ ```

import { createInspector } from 'fs-inspect';
import { homedir } from 'os';

@@ -52,3 +54,3 @@ async function main() {

const documents = await search('~/Documents');
const documents = await search(`${ homedir() }/Documents`);
}

@@ -63,2 +65,3 @@ ```

import { createInspector } from 'fs-inspect';
import { homedir } from 'os';

@@ -73,3 +76,3 @@ async function main() {

const sources = await search('~/Developer/my_project');
const sources = await search(`${ homedir() }/Developer/my_project`);
}

@@ -84,2 +87,3 @@ ```

import { createInspector } from 'fs-inspect';
import { homedir } from 'os';

@@ -97,3 +101,3 @@ async function main() {

const stats = await search('~/Developer/my_project/assets');
const stats = await search(`${ homedir() }/Developer/my_project/assets`);
}

@@ -100,0 +104,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