Skip to main content
Module

x/scaffold/src/deps/path.ts>isNotJunk

scaffold your next project with style and 💗
Latest
function isNotJunk
import { isNotJunk } from "https://deno.land/x/scaffold@0.3.0/src/deps/path.ts";

Returns true if filename does not match a junk file.

Examples

Example 1

import fs from 'node:fs/promises';
import {isNotJunk} from 'junk';

const files = await fs.readdir('some/path');

console.log(files);
//=> ['.DS_Store', 'test.jpg']

console.log(files.filter(isNotJunk));
//=> ['test.jpg']

Parameters

filename: string

Returns

boolean