Comparing version 1.0.0 to 1.0.1
{ | ||
"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 @@ ``` |
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
31301
246