0.1.4 • Published 1 year ago

lots-of-sample-files v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

lots-of-sample-files

NPM Version

Note: THIS project is still under development. Please do not use it in production.

What is it for?

With lots-of-sample-files, You can get lots of sample files for experiments and testing in Node.js or Deno (should works).

We've provided a simple API for you. You can obtain lots-of-sample-files from NPM. Please see the section "How to Obtain".

Links for You

How to Obtain

lots-of-sample-files provides an NPM package. You can install it with your favorite package managers, and then import it into your tests.

Package ManagerCommandShorthand
bunbun install lots-of-sample-filesbun i lots-of-sample-files
npmnpm install lots-of-sample-filesnpm i lots-of-sample-files
pnpmpnpm install lots-of-sample-filespnpm i lots-of-sample-files
yarnyarn add lots-of-sample-filesyarn add lots-of-sample-files

Let's Learn How to Use It

import { Sample } from 'lots-of-sample-files';

const paths = [...Sample.paths()];
const files = [...Sample.files()];

for (const { path, type } of Sample.paths()) {
  if (path.endsWith('.zip') || type === 'application/zip') {
    console.log(path);
  }
}

for (const file of Sample.files((type) => type.startsWith('image/'))) {
  console.log(file.name, file.type);
}

Let's Setup the Project

Note: THIS section is for contributors and developers only

Recommended IDE Setup for You

See What Dependencies We Are Using

See What Commands We Are Using

Package ManagerCommandScriptDescription
bun / npm / pnpminstallInstall dependencies
bun / npm / pnpmrunbuildBuild the library for production
bun / npm / pnpmruncheckCheck the codes with TypeScript
bun / npm / pnpmrundev-buildBuild the library for development
bun / npm / pnpmrunformatFormat codes using Prettier
bun / npm / pnpmruntestRun integration tests (after build)

Be Aware of These Details

You may encounter some problems during development and deployment. Please read the following notes carefully.

  1. There is no support for Node.js below version 18. Please issue us if you need it.
0.1.4

1 year ago

0.1.3

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.6-0

1 year ago

0.0.3-beta

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.2-beta

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1-beta

1 year ago