memfs-browser
In-memory file-system with Node's fs API.
Last updated 2 years ago by toyobayashi .
Unlicense · Repository · Bugs · Original npm · Tarball · package.json
$ npm install memfs-browser 
SYNC missed versions from official npm registry.

memfs-browser

memfs UMD and ESM bundle for browser.

The code shipped in this package is not transpiled by babel.

Version explanation

memfs: major.minor.patch  -->  memfs-browser: major.minor.1{patch:2}{build:2}

example:

3.5.3  -->  3.5.103xx
4.6.0  -->  4.6.100xx

Usage

npm install memfs-browser
  • HTML <script>

    <script src="your-buffer-polyfill-that-set-globalThis-Buffer"></script>
    <script src="./node_modules/memfs-browser/dist/memfs.min.js"></script>
    <script src="./index.js"></script>
    
    // index.js
    
    /// <reference path="./node_modules/memfs-browser/index.d.ts" />
    
    console.log(memfs.versions.memfs) // original memfs version
    console.log(memfs.versions.build) // version of current build
    console.log(memfs.path) // path-browserify
    
  • HTML <script type="module">

    <script type="importmap">
      {
        "imports": {
          "memfs-browser": "./node_modules/memfs-browser/dist/memfs.esm.min.js"
        }
      }
    </script>
    <script src="your-buffer-polyfill-that-set-globalThis-Buffer"></script>
    <script type="module" src="./index.js"></script>
    
    import * as memfs from 'memfs-browser'
    
    console.log(memfs.versions.memfs) // original memfs version
    console.log(memfs.versions.build) // version of current build
    console.log(memfs.path) // path-browserify
    
  • Webpack

    npm install buffer
    
    module.exports = {
      resolve: {
        alias: {
          buffer: require.resolve('buffer/')
        }
      }
    }
    
    import * as memfs from 'memfs-browser'
    // const memfs = require('memfs-browser')
    
    console.log(memfs.versions.memfs) // original memfs version
    console.log(memfs.versions.build) // version of current build
    console.log(memfs.path) // path-browserify
    

Current Tags

  • 3.5.10302                                ...           latest (a year ago)

16 Versions

  • 3.5.10302                                ...           a year ago
  • 4.6.10002                                ...           a year ago
  • 4.6.10001                                ...           a year ago
  • 3.5.10301                                ...           a year ago
  • 4.6.0                                ...           a year ago
  • 3.5.3                                ...           a year ago
  • 3.4.13001                                ...           a year ago
  • 3.4.13000                                ...           2 years ago
  • 3.4.11000                                ...           2 years ago
  • 3.4.10900                                ...           2 years ago
  • 3.4.10801                                ...           2 years ago
  • 3.4.10800                                ...           2 years ago
  • 3.4.10703                                ...           2 years ago
  • 3.4.10702                                ...           2 years ago
  • 3.4.10701                                ...           2 years ago
  • 3.4.10700                                ...           2 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (13)

© 2010 - cnpmjs.org x YWFE | Home | YWFE