معرفی شرکت ها


fixturify-3.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Convert objects into directory structures and back again
ویژگی مقدار
سیستم عامل -
نام فایل fixturify-3.0.0
نام fixturify
نسخه کتابخانه 3.0.0
نگهدارنده ['joliss', 'stefanpenner']
ایمیل نگهدارنده ['joliss42@gmail.com', 'stefan.penner@gmail.com']
نویسنده Jo Liss
ایمیل نویسنده joliss42@gmail.com
آدرس صفحه اصلی git+https://github.com/joliss/node-fixturify.git
آدرس اینترنتی https://github.com/joliss/node-fixturify#readme
مجوز MIT
# node-fixturify ![CI](https://github.com/joliss/node-fixturify/workflows/CI/badge.svg) Convert JSON objects into directory structures on the file system, and back again. This package is primarily useful for writing tests. ## Installation ```bash yarn add fixturify ``` ## Usage ```js const fixturify = require('fixturify') const obj = { 'foo.txt': 'foo.txt contents', 'subdir': { 'bar.txt': 'bar.txt contents' } } fixturify.writeSync('testdir', obj) // write it to disk fixturify.readSync('testdir') // => deep-equals obj fixturify.readSync('testdir', { globs: ['foo*'] }) // glob support // => { foo.txt: 'foo.text contents' } fixturify.readSync('testdir', { ignore: ['foo*'] }) // glob support // => { subdir: { bar.txt: 'bar.text contents' } } fixturify.writeSync('testDir', { 'subdir': { 'bar.txt': null } }) // remove subdir/bar.txt fixturify.readSync('testdir') // => { foo.txt: 'foo.text contents' } fixturify.writeSync('testDir', { 'subdir': null }) // remove subdir/ ``` ```js const fixturify = require('fixturify') const obj = { 'subdir': { 'foo.txt': 'foo.txt contents' }, 'emptydir': {} } fixturify.writeSync('testdir', obj) // write it to disk fixturify.readSync('testdir', { ignoreEmptyDirs: true }) // => { subdir: { foo.txt': 'foo.txt contents' } } ``` File contents are decoded and encoded with UTF-8. `fixture.readSync` follows symlinks. It throws an error if it encounters a broken symlink. ## Limitations To keep the API simple, node-fixturify has the following limitations: * Reading or setting file stats (last-modified time, permissions, etc.) is not supported. * Creating symlinks is not supported. Symlinks are traversed when reading. Broken symlinks throw. * Special files like FIFOs, sockets, or devices are not supported. * File contents are automatically encoded/decoded into strings. Binary files are not supported.


نیازمندی

مقدار نام
^9.0.13 @types/fs-extra
^3.0.3 @types/minimatch
^3.0.2 @types/rimraf
^10.1.0 fs-extra
^2.0.1 matcher-collection
^3.0.0 walk-sync


زبان مورد نیاز

مقدار نام
14.15.4 Npm


نحوه نصب


نصب پکیج tgz fixturify-3.0.0:

    npm install fixturify-3.0.0.tgz