https://github.com/cheminfo/filelist-utils

https://github.com/cheminfo/filelist-utils

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 7 committers (14.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.6%) to scientific vocabulary

Keywords

hacktoberfest

Keywords from Contributors

chemistry nmr nmr-spectroscopy bruker jcamp jcamp-dx jeol nmr-parser chromatography gcms
Last synced: 10 months ago · JSON representation

Repository

Basic Info
Statistics
  • Stars: 0
  • Watchers: 5
  • Forks: 1
  • Open Issues: 5
  • Releases: 41
Topics
hacktoberfest
Created over 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License

README.md

filelist-utils

NPM version build status Test coverage npm download

Create a FileCollection from various sources.

DEPRECATED

This project was deprecated because it tries to modify a native type (File) which is not optimal.

A new project was created to avoid this issue and can be found at: https://www.npmjs.com/package/file-collection

Introduction

In order to make compatible code between the browser and node and to allow drag and drop of a folder it is useful to an abstraction level.

This package allows to create a FileCollection from various sources:

  • a FileList (that implements an Iterator of File).
  • a relative path (with its basedir)
  • a webservice that returns a JSON containing an array of object that has the following properties: relativePath, name, lastModified, size

A FileCollection has an iterator on FileCollectionItem that has the following properties:

  • lastModified: number;
  • name: string;
  • relativePath: string;
  • size: number;
  • arrayBuffer(): Promise;
  • stream(): ReadableStream;
  • text(): Promise;

Load and Save from remote server

// You should have a webservice that returns this kind of object

js const source = { files: [ { name: 'data.zip', size: 1589, relativePath: 'dataUnzip/data.zip', lastModified: 1664430693588, }, { name: 'a.txt', size: 1, relativePath: 'dataUnzip/dir1/a.txt', lastModified: 1664430693588, }, ], baseURL: 'http://localhost/', }; const fileCollection = fileCollectionFromSource(source);

Installation

npm i filelist-utils

Usage

```js import { fileCollectionFromPath } from 'filelist-utils';

const fileCollection = fileCollectionFromPath(__dirname); ```

```js import { fileCollectionFromZip } from 'filelist-utils';

const zip = readFileSync(join(__dirname, 'test.zip')); const fileCollection = fileCollectionFromZip(zip); ```

License

MIT

Owner

  • Name: Cheminfo
  • Login: cheminfo
  • Kind: organization

GitHub Events

Total
  • Create event: 2
  • Issues event: 2
  • Release event: 1
  • Watch event: 1
  • Delete event: 2
  • Issue comment event: 5
  • Push event: 2
  • Pull request event: 3
  • Pull request review event: 1
Last Year
  • Create event: 2
  • Issues event: 2
  • Release event: 1
  • Watch event: 1
  • Delete event: 2
  • Issue comment event: 5
  • Push event: 2
  • Pull request event: 3
  • Pull request review event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 146
  • Total Committers: 7
  • Avg Commits per committer: 20.857
  • Development Distribution Score (DDS): 0.39
Past Year
  • Commits: 8
  • Committers: 3
  • Avg Commits per committer: 2.667
  • Development Distribution Score (DDS): 0.5
Top Committers
Name Email Commits
Luc Patiny l****c@p****m 89
cheminfo-bot 1****t 41
Jose Alejandro Bolanos Arroyave j****s@c****o 7
Michaël Zasso t****s@p****m 4
Santiago Miranda s****r@p****m 3
hamed-musallam 3****m 1
Santiago Miranda s****r@p****e 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 22
  • Total pull requests: 76
  • Average time to close issues: 5 months
  • Average time to close pull requests: 4 days
  • Total issue authors: 4
  • Total pull request authors: 6
  • Average comments per issue: 1.41
  • Average comments per pull request: 1.32
  • Merged pull requests: 68
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 5
  • Average time to close issues: N/A
  • Average time to close pull requests: 39 minutes
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 1.6
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • lpatiny (17)
  • jobo322 (2)
  • targos (2)
  • santimirandarp (1)
Pull Request Authors
  • cheminfo-bot (46)
  • lpatiny (14)
  • santimirandarp (10)
  • jobo322 (6)
  • targos (2)
  • hamed-musallam (1)
Top Labels
Issue Labels
enhancement (2) discuss (1)
Pull Request Labels
autorelease: tagged (41) autorelease: pending (5)

Packages

  • Total packages: 1
  • Total downloads:
    • npm 4,650 last-month
  • Total dependent packages: 15
  • Total dependent repositories: 16
  • Total versions: 42
  • Total maintainers: 2
npmjs.org: filelist-utils

Create a FileCollection from a path or a zip file

  • Versions: 42
  • Dependent Packages: 15
  • Dependent Repositories: 16
  • Downloads: 4,650 Last month
Rankings
Dependent packages count: 1.5%
Downloads: 2.7%
Dependent repos count: 3.0%
Average: 8.0%
Forks count: 11.6%
Stargazers count: 21.0%
Maintainers (2)
Last synced: about 1 year ago

Dependencies

package.json npm
  • @babel/plugin-transform-modules-commonjs ^7.18.6 development
  • @babel/preset-typescript ^7.18.6 development
  • @types/jest ^29.0.0 development
  • @types/pako ^2.0.0 development
  • eslint ^8.23.0 development
  • eslint-config-cheminfo-typescript ^11.0.1 development
  • jest ^29.0.1 development
  • msw ^0.47.3 development
  • prettier ^2.7.1 development
  • rimraf ^3.0.2 development
  • typescript ^4.8.2 development
  • cross-fetch ^3.1.5
  • jszip ^3.10.1
  • pako ^2.0.4
.github/workflows/lactame.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • zakodium/lactame-action v1 composite
.github/workflows/nodejs-ts.yml actions
.github/workflows/npm-prerelease.yml actions
.github/workflows/release.yml actions
.github/workflows/typedoc.yml actions
  • JamesIves/github-pages-deploy-action releases/v4 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • zakodium/typedoc-action v2 composite