{"_id":"test-fixture","_rev":"181264","name":"test-fixture","description":"Copy test-fixtures to temp dir and get resolved file paths.","dist-tags":{"latest":"2.4.1"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"time":{"modified":"2021-06-03T12:05:05.000Z","created":"2014-06-07T16:35:40.101Z","2.4.1":"2019-08-17T02:56:41.556Z","2.4.0":"2019-05-11T07:21:19.407Z","2.3.0":"2019-05-11T07:15:06.820Z","2.2.0":"2019-05-11T07:04:49.068Z","2.1.1":"2019-05-11T06:05:01.474Z","2.1.0":"2019-05-11T05:46:51.501Z","2.0.0":"2019-05-11T05:13:21.044Z","1.0.2":"2014-08-05T14:50:29.927Z","1.0.1":"2014-06-12T06:40:23.547Z","1.0.0":"2014-06-08T05:26:16.881Z","0.1.1":"2014-06-07T16:40:17.134Z","0.1.0":"2014-06-07T16:35:40.101Z"},"users":{},"author":{"name":"kaelzhang"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"versions":{"2.4.1":{"name":"test-fixture","version":"2.4.1","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"nyc ava --timeout=10s --verbose","test:dev":"nyc ava --timeout=10s --verbose && npm run report:dev","lint":"eslint .","fix":"eslint . --fix","posttest":"npm run report","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","report:dev":"nyc report --reporter=html && npm run report:open","report:open":"open coverage/index.html"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">= 7"},"ava":{"babel":false,"files":["test/*.test.js"]},"author":{"name":"kaelzhang"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"@ostai/eslint-config":"^3.1.1","ava":"^1.4.1","codecov":"^3.4.0","eslint":"^5.16.0","eslint-plugin-import":"^2.17.2","nyc":"^14.1.1"},"dependencies":{"core-util-is":"^1.0.2","fs-extra":"^7.0.1","npminstall":"^4.0.0","tmp-promise":"^1.1.0"},"gitHead":"dd8b78f8a5cd3a7af23d5f5fcd1a0de01574b140","homepage":"https://github.com/kaelzhang/node-test-fixture#readme","_id":"test-fixture@2.4.1","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"shasum":"a1f75b2db84da69f4dca14262ed222f86c6a1a69","size":3109,"noattachment":false,"key":"/test-fixture/-/test-fixture-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-2.4.1.tgz"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"_npmUser":{"name":"kael","email":"i@kael.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test-fixture_2.4.1_1566010601443_0.7714078040875201"},"_hasShrinkwrap":false,"publish_time":1566010601556,"_cnpm_publish_time":1566010601556},"2.4.0":{"name":"test-fixture","version":"2.4.0","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"nyc ava --timeout=10s --verbose","test:dev":"nyc ava --timeout=10s --verbose && npm run report:dev","lint":"eslint .","fix":"eslint . --fix","posttest":"npm run report","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","report:dev":"nyc report --reporter=html && npm run report:open","report:open":"open coverage/index.html"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">= 7"},"ava":{"babel":false,"files":["test/*.test.js"]},"author":{"name":"kaelzhang"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"@ostai/eslint-config":"^3.1.1","ava":"^1.4.1","codecov":"^3.4.0","eslint":"^5.16.0","eslint-plugin-import":"^2.17.2","nyc":"^14.1.1"},"dependencies":{"core-util-is":"^1.0.2","fs-extra":"^7.0.1","npminstall":"^4.0.0","tmp-promise":"^1.1.0"},"gitHead":"9b9d5fbc22591820f6afee7fd7048167769d70d1","homepage":"https://github.com/kaelzhang/node-test-fixture#readme","_id":"test-fixture@2.4.0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","_npmUser":{"name":"kael","email":"i@kael.me"},"dist":{"shasum":"61703f188dbf1bf621ef1f01a7b0990fcf872ff4","size":3113,"noattachment":false,"key":"/test-fixture/-/test-fixture-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-2.4.0.tgz"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test-fixture_2.4.0_1557559279235_0.11744365626605036"},"_hasShrinkwrap":false,"publish_time":1557559279407,"_cnpm_publish_time":1557559279407},"2.3.0":{"name":"test-fixture","version":"2.3.0","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"nyc ava --timeout=10s --verbose","test:dev":"nyc ava --timeout=10s --verbose && npm run report:dev","lint":"eslint .","fix":"eslint . --fix","posttest":"npm run report","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","report:dev":"nyc report --reporter=html && npm run report:open","report:open":"open coverage/index.html"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">= 7"},"ava":{"babel":false,"files":["test/*.test.js"]},"author":{"name":"kaelzhang"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"@ostai/eslint-config":"^3.1.1","ava":"^1.4.1","codecov":"^3.4.0","eslint":"^5.16.0","eslint-plugin-import":"^2.17.2","nyc":"^14.1.1"},"dependencies":{"core-util-is":"^1.0.2","fs-extra":"^7.0.1","npminstall":"^4.0.0","tmp-promise":"^1.1.0"},"gitHead":"3875f344b75f0ce38b34ab326ba0f2f860948e38","homepage":"https://github.com/kaelzhang/node-test-fixture#readme","_id":"test-fixture@2.3.0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","_npmUser":{"name":"kael","email":"i@kael.me"},"dist":{"shasum":"093231a32a7c460a98eaf4a73ae1bfbe2a2f8a62","size":3114,"noattachment":false,"key":"/test-fixture/-/test-fixture-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-2.3.0.tgz"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test-fixture_2.3.0_1557558906708_0.44701094156865695"},"_hasShrinkwrap":false,"publish_time":1557558906820,"_cnpm_publish_time":1557558906820},"2.2.0":{"name":"test-fixture","version":"2.2.0","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"nyc ava --timeout=10s --verbose","test:dev":"nyc ava --timeout=10s --verbose && npm run report:dev","lint":"eslint .","fix":"eslint . --fix","posttest":"npm run report","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","report:dev":"nyc report --reporter=html && npm run report:open","report:open":"open coverage/index.html"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">= 7"},"ava":{"babel":false,"files":["test/*.test.js"]},"author":{"name":"kaelzhang"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"@ostai/eslint-config":"^3.1.1","ava":"^1.4.1","codecov":"^3.4.0","eslint":"^5.16.0","eslint-plugin-import":"^2.17.2","nyc":"^14.1.1"},"dependencies":{"core-util-is":"^1.0.2","fs-extra":"^7.0.1","npminstall":"^4.0.0","tmp-promise":"^1.1.0"},"gitHead":"5ea4da5f46b0a4d6a19ec89faa938e1e0e34390d","homepage":"https://github.com/kaelzhang/node-test-fixture#readme","_id":"test-fixture@2.2.0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","_npmUser":{"name":"kael","email":"i@kael.me"},"dist":{"shasum":"e31562aaef4076819b2b89ef872308b6af21c3f0","size":3066,"noattachment":false,"key":"/test-fixture/-/test-fixture-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-2.2.0.tgz"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test-fixture_2.2.0_1557558288935_0.33662905032631785"},"_hasShrinkwrap":false,"publish_time":1557558289068,"_cnpm_publish_time":1557558289068},"2.1.1":{"name":"test-fixture","version":"2.1.1","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"nyc ava --timeout=10s --verbose","test:dev":"nyc ava --timeout=10s --verbose && npm run report:dev","lint":"eslint .","fix":"eslint . --fix","posttest":"npm run report","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","report:dev":"nyc report --reporter=html && npm run report:open","report:open":"open coverage/index.html"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">= 7"},"ava":{"babel":false,"files":["test/*.test.js"]},"author":{"name":"kaelzhang"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"@ostai/eslint-config":"^3.1.1","ava":"^1.4.1","codecov":"^3.4.0","eslint":"^5.16.0","eslint-plugin-import":"^2.17.2","nyc":"^14.1.1"},"dependencies":{"core-util-is":"^1.0.2","fs-extra":"^7.0.1","npminstall":"^4.0.0","tmp-promise":"^1.1.0"},"gitHead":"3a7d56b9d485445fbaed3a466bd746bb738d0582","homepage":"https://github.com/kaelzhang/node-test-fixture#readme","_id":"test-fixture@2.1.1","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","_npmUser":{"name":"kael","email":"i@kael.me"},"dist":{"shasum":"8cd83a77dc24d5831582943f08bf9f34f10554d3","size":2940,"noattachment":false,"key":"/test-fixture/-/test-fixture-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-2.1.1.tgz"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test-fixture_2.1.1_1557554701237_0.9466174911339633"},"_hasShrinkwrap":false,"publish_time":1557554701474,"_cnpm_publish_time":1557554701474},"2.1.0":{"name":"test-fixture","version":"2.1.0","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"nyc ava --timeout=10s --verbose","test:dev":"nyc ava --timeout=10s --verbose && npm run report:dev","lint":"eslint .","fix":"eslint . --fix","posttest":"npm run report","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","report:dev":"nyc report --reporter=html && npm run report:open","report:open":"open coverage/index.html"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">= 7"},"ava":{"babel":false,"files":["test/*.test.js"]},"author":{"name":"kaelzhang"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"@ostai/eslint-config":"^3.1.1","ava":"^1.4.1","codecov":"^3.4.0","eslint":"^5.16.0","eslint-plugin-import":"^2.17.2","nyc":"^14.1.1"},"dependencies":{"core-util-is":"^1.0.2","fs-extra":"^7.0.1","npminstall":"^4.0.0","tmp-promise":"^1.1.0"},"gitHead":"2ac971aaeb28b1d93b9d926dd8dd664190b38eb8","homepage":"https://github.com/kaelzhang/node-test-fixture#readme","_id":"test-fixture@2.1.0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","_npmUser":{"name":"kael","email":"i@kael.me"},"dist":{"shasum":"1ff7b04a07245686ffc1850daf01ad919a6c8e51","size":2884,"noattachment":false,"key":"/test-fixture/-/test-fixture-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-2.1.0.tgz"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test-fixture_2.1.0_1557553611328_0.2450311460474659"},"_hasShrinkwrap":false,"publish_time":1557553611501,"_cnpm_publish_time":1557553611501},"2.0.0":{"name":"test-fixture","version":"2.0.0","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"nyc ava --timeout=10s --verbose","test:dev":"nyc ava --timeout=10s --verbose && npm run report:dev","lint":"eslint .","fix":"eslint . --fix","posttest":"npm run report","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","report:dev":"nyc report --reporter=html && npm run report:open","report:open":"open coverage/index.html"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">= 7"},"ava":{"babel":false,"files":["test/*.test.js"]},"author":{"name":"kaelzhang"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"@ostai/eslint-config":"^3.1.1","ava":"^1.4.1","codecov":"^3.4.0","eslint":"^5.16.0","eslint-plugin-import":"^2.17.2","nyc":"^14.1.1"},"dependencies":{"fs-extra":"^7.0.1","tmp-promise":"^1.1.0"},"gitHead":"e68a15b2afaae5a94b8954c9f757464dbfee52f5","homepage":"https://github.com/kaelzhang/node-test-fixture#readme","_id":"test-fixture@2.0.0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","_npmUser":{"name":"kael","email":"i@kael.me"},"dist":{"shasum":"597d39a7fbab6cc444d79e17e5748b9b7cff30f6","size":2585,"noattachment":false,"key":"/test-fixture/-/test-fixture-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-2.0.0.tgz"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test-fixture_2.0.0_1557551600894_0.32731335935422634"},"_hasShrinkwrap":false,"publish_time":1557551601044,"_cnpm_publish_time":1557551601044},"1.0.2":{"name":"test-fixture","version":"1.0.2","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">=0.11.0"},"author":{"name":"kael"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"mocha":"*","chai":"*"},"dependencies":{"underscore":"^1.6.0","tmp":"^0.0.23","fs-extra":"^0.10.0"},"homepage":"https://github.com/kaelzhang/node-test-fixture","_id":"test-fixture@1.0.2","_shasum":"7f156322a3e2cf2bf7b9470f405cf2785d2e59be","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"kael","email":"i@kael.me"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"dist":{"shasum":"7f156322a3e2cf2bf7b9470f405cf2785d2e59be","size":3790,"noattachment":false,"key":"/test-fixture/-/test-fixture-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-1.0.2.tgz"},"directories":{},"publish_time":1407250229927,"_cnpm_publish_time":1407250229927,"_hasShrinkwrap":false},"1.0.1":{"name":"test-fixture","version":"1.0.1","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">=0.11.0"},"author":{"name":"kael"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"mocha":"*","chai":"*"},"dependencies":{"underscore":"~1.6.0","tmp":"0.0.23","fs-extra":"~0.9.1"},"homepage":"https://github.com/kaelzhang/node-test-fixture","_id":"test-fixture@1.0.1","dist":{"shasum":"65ef19eddac21495866504d4bfd2b3673c7e1bff","size":3787,"noattachment":false,"key":"/test-fixture/-/test-fixture-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"kael","email":"i@kael.me"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"publish_time":1402555223547,"_cnpm_publish_time":1402555223547,"_hasShrinkwrap":false},"1.0.0":{"name":"test-fixture","version":"1.0.0","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">=0.11.0"},"author":{"name":"kael"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"mocha":"*","chai":"*"},"dependencies":{"underscore":"~1.6.0","tmp":"0.0.23","fs-extra":"~0.9.1"},"homepage":"https://github.com/kaelzhang/node-test-fixture","_id":"test-fixture@1.0.0","dist":{"shasum":"880cc0fcf91858823724b593558f2f51255e28c3","size":3690,"noattachment":false,"key":"/test-fixture/-/test-fixture-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"kael","email":"i@kael.me"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"publish_time":1402205176881,"_cnpm_publish_time":1402205176881,"_hasShrinkwrap":false},"0.1.1":{"name":"test-fixture","version":"0.1.1","description":"Copy test-fixtures to temp dir and get resolved file paths.","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test","fixtures","resolve","copy","temp","tmp"],"engines":{"node":">=0.11.0"},"author":{"name":"kael"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"mocha":"*","chai":"*"},"dependencies":{"underscore":"~1.6.0","tmp":"0.0.23","fs-extra":"~0.9.1"},"homepage":"https://github.com/kaelzhang/node-test-fixture","_id":"test-fixture@0.1.1","dist":{"shasum":"4e231d354484601f490da746cbafd8df5395fb7c","size":3236,"noattachment":false,"key":"/test-fixture/-/test-fixture-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"kael","email":"i@kael.me"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"publish_time":1402159217134,"_cnpm_publish_time":1402159217134,"_hasShrinkwrap":false},"0.1.0":{"name":"test-fixture","version":"0.1.0","description":"test-fixture","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/kaelzhang/node-test-fixture.git"},"keywords":["test-fixture"],"engines":{"node":">=0.11.0"},"author":{"name":"kael"},"license":"MIT","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"devDependencies":{"mocha":"*","chai":"*"},"dependencies":{"underscore":"~1.6.0","tmp":"0.0.23","fs-extra":"~0.9.1"},"homepage":"https://github.com/kaelzhang/node-test-fixture","_id":"test-fixture@0.1.0","dist":{"shasum":"18e43ec76e52bd08f6035036ef3aecbea1a8c2c9","size":3213,"noattachment":false,"key":"/test-fixture/-/test-fixture-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/test-fixture/download/test-fixture-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"kael","email":"i@kael.me"},"maintainers":[{"name":"kael","email":"i@kael.me"}],"directories":{},"publish_time":1402158940101,"_cnpm_publish_time":1402158940101,"_hasShrinkwrap":false}},"readme":"[![Build Status](https://travis-ci.org/kaelzhang/node-test-fixture.svg?branch=master)](https://travis-ci.org/kaelzhang/node-test-fixture)\n[![Coverage](https://codecov.io/gh/kaelzhang/node-test-fixture/branch/master/graph/badge.svg)](https://codecov.io/gh/kaelzhang/node-test-fixture)\n\n# test-fixture\n\nCopy test fixtures to a temp dir and get resolved file paths.\n\n### Why?\n\nI am tired of writing these:\n\n```js\npath.resolve(__dirname, 'test', 'fixtures')\ntmp.dir(callback)\nfse.copy(fixtures, dir)\npath.join(fixtures, 'some-file.js')\n```\n\n**EVERY DAY!**\n\nSo, I got this.\n\n## Install\n\n```bash\n$ npm i test-fixture -D\n```\n\n## Usage\n\n```js\n// By default, it will use 'test/fixtures' dir.\nconst {copy, resolve} = require('test-fixture')()\n\n// copy 'test/fixtures' to the temp dir\n;(async () => {\n  await copy()\n  console.log(resolve('foo.js'))\n  // '/<temp-dir>/foo.js'\n})\n```\n\n### fixtures(...paths): {resolve, copy, install, root}\n\n- **paths** `Array<path>` to define the root paths of the fixtures, which is similar as\n\nDefines the root of the fixture\n\n```js\nconst path = require('path')\nconst fixturesRoot = path.resolve(projectRoot, 'test', 'fixtures')\n\npath.resolve(fixturesRoot, ...paths)\n```\n\n`...paths` | `base`(dir of test fixtures)\n--------- | --------------------\n`undefined` | `test/fixtures`\n`'a'` | `test/fixtures/a`\n`'a'`, `'b'` | `test/fixtures/a/b`\n`'/path/to'` (absolute) | `/path/to`\n`'/path/to'` (absolute), `'a'` | `/path/to/a`\n\nActually, the `base` is `path.resolve('text/fixtures', ...paths)`\n\n#### Without copying\n\n```js\nconst {resolve} = fixtures(p)\nresolve('a.js')  // -> /path/to/<p>/a.js\n```\n\n#### Using `.copy()`\n\n```js\nconst {copy, resolve} = fixtures(p)\n\nawait copy('/path/to')\n\nresolve('a.js') // -> /path/to/a.js\n```\n\n### await copy(options?)\n### await copy(to?)\n\n- **options?** `Object`\n  - **to?** `path=` the destination folder where the test fixtures will be copied to. If not specified, a temporary directory will be used.\n  - **clean?** `boolean=false` whether should clean the directory `to` if `options.to` is specified.\n  - **install?** `boolean=false` whether should run npm install after copying\n\nCopy the test fixtures into another directory.\n\n```js\ncopy('/path/to')\n\n// is equivalent to\ncopy({\n  to: '/path/to',\n  install: false\n})\n```\n\n### resolve(...paths)\n\nResolves the paths to get the path of the test fixtures\n\nAfter `.copy()`ed, it will resolve paths based on the destination dir.\n\nIf not, it will use the base dir. But never use both of them simultaneously.\n\n```\n/path/to/<base>\n             |-- a.js\n/path/to/<to>\n           |-- a.js\n```\n\n### await install(options?)\n\n- **options?** `Object` options of [`npminstall`](https://npmjs.org/package/npminstall)\n\nInstall packages in the working directory. If run after `await copy()`, then it will install packages in the directory which fixtures copied to.\n\n### getter: root `string`\n\nThe fixture root `/<project-root>/test/fixtures`\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/kaelzhang/node-test-fixture#readme","bugs":{"url":"https://github.com/kaelzhang/node-test-fixture/issues"},"license":"MIT"}