{"_id":"@boris-turner/amphora-fs","_rev":"2-f88e148780fa30463a3ca6e5df60ccab","name":"@boris-turner/amphora-fs","dist-tags":{"latest":"1.0.2-cnn.0"},"versions":{"1.0.1":{"name":"@boris-turner/amphora-fs","version":"1.0.1","description":"File system utils for Amphora and the Clay ecosystem","main":"index.js","scripts":{"generate-readme":"node docs/generate-readme.js && git add README.md","lint":"eslint lib test index.js index.test.js","test":"npm run lint && npm run mocha","mocha":"istanbul cover _mocha"},"author":"","license":"MIT","dependencies":{"clayutils":"^2.1.0","js-yaml":"^3.12.0","lodash":"^4.17.4","template2env":"^1.0.4"},"devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.0","eslint":"^4.18.2","glob":"^7.1.2","istanbul":"^0.4.5","mocha":"^5.0.4","pre-commit":"^1.2.2","sinon":"^4.4.6"},"gitHead":"2f9663cbe0d110209853ccbacb1548a73cb0a2f6","publishConfig":{"access":"public"},"_id":"@boris-turner/amphora-fs@1.0.1","_nodeVersion":"12.8.0","_npmVersion":"lerna/3.16.4/node@v12.8.0+x64 (darwin)","dist":{"integrity":"sha512-4XEVhv4NWkH+9honsSFkdN85+T+OOvsQABP/16mjp3HAjp9KlGuGLdlUQ7HShpiFlbWSu9iBWC5QyMwmL4TdOg==","shasum":"4e80262f9731d25e553814b047ce6f39e3a1aa65","tarball":"https://registry.npmjs.org/@boris-turner/amphora-fs/-/amphora-fs-1.0.1.tgz","fileCount":47,"unpackedSize":46394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdaIA6CRA9TVsSAnZWagAAUqQP/jeBG+Toq5RcEj/P0dWw\nVtDlZlOkDLaBDqQQr3D1+QtNUAnTg1Gr0fRS6nvY91hcGMxSgDEVG7Jugfu/\nILCK9BPcujxhkwevn1WDYAJEzZmA/0i9BWkRmUv9HPZwtjtAqEEZiRpd5Ode\noTVekxZZey4gwMealAWj6fFuOZcwpdBzvmR8bYKnDqpL9tGVBWCq5KyjHc5E\n4It6T3tAzUCYWE72A7EhKSDyjpJrtBZuvIfQHwT6mxv/kph5w1EYyQf3fVMd\ntx+XSEayDbG3KjXZbeF8oHllai7BN9GvWP3drYH/kyknJ5e8RS+BVtdR3Zs0\nkaImcxLsCOsnVshsB0TIZ4ikMHD7CEb4nUku9wU5ELeRlMPsyPmkrH1NNqQp\nrWriGOQa13V9SzS+XpnoLnn/a8s3W8cdXzLohvBWgqFqLhvK8OZjE37qnEYh\nqeSW+iaW2cP0RFoau8+JyPxo7rl3gFP7/0/4BI5KHBzm0AQTSzlXT38UClDS\nTie2o6uT4dllumx60qfDGuFqbCADZ5n6p9rQz/67FM2Ho2ucKp4inukLyV6u\n/5S1M7O1kzg9RoCgaIGgH12zYGuBi76f9uDu1JsEC2eNp4B4KO8HsOCZMrzT\nIt/oOQKid5LCDv7o9qQMCX3avOJPFUJJIeqndksCuk53C7HZ6JLAn0RVgFJB\nt1Hr\r\n=giXz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBt5+qFfMmSypW8AVKqlje+mG/3UuXgkvyGQ900VXsGQIgejlhKRtwpOORtgoWZqWswHY30LUzq+Je1BOxOV5I48M="}]},"maintainers":[{"name":"boris-turner","email":"boris.musa@turner.com"}],"_npmUser":{"name":"boris-turner","email":"boris.musa@turner.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amphora-fs_1.0.1_1567129657756_0.6605181079380757"},"_hasShrinkwrap":false},"1.0.2-cnn.0":{"name":"@boris-turner/amphora-fs","version":"1.0.2-cnn.0","description":"File system utils for Amphora and the Clay ecosystem","main":"index.js","scripts":{"generate-readme":"node docs/generate-readme.js && git add README.md","lint":"eslint lib test index.js index.test.js","test":"npm run lint && npm run mocha","mocha":"istanbul cover _mocha"},"author":"","license":"MIT","dependencies":{"@boris-turner/clayutils":"^2.6.3-cnn.0","js-yaml":"^3.12.0","lodash":"^4.17.4","template2env":"^1.0.4"},"devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.0","eslint":"^4.18.2","glob":"^7.1.2","istanbul":"^0.4.5","mocha":"^5.0.4","pre-commit":"^1.2.2","sinon":"^4.4.6"},"gitHead":"2f9663cbe0d110209853ccbacb1548a73cb0a2f6","publishConfig":{"access":"public"},"_id":"@boris-turner/amphora-fs@1.0.2-cnn.0","_nodeVersion":"12.8.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-uhiQPkwvcYbKwqaH3jEs84JiSbmohnUy5vUafBhxPeZgNelD3MQL0y2zPDVKJRUI1TjGJYYDaeW23i5Ewf/iWg==","shasum":"088356437cbed229deca60a24a885c38740014e7","tarball":"https://registry.npmjs.org/@boris-turner/amphora-fs/-/amphora-fs-1.0.2-cnn.0.tgz","fileCount":47,"unpackedSize":46257,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmiRNCRA9TVsSAnZWagAAgOMP/3sY8mnVsAZ6vfK8lggN\nGki/Y3iLs8TuTtOZ7E4WwXaGkgfBgKNvxnnn9TVRV14ozPag3a/Wq3UIDCnZ\nguDRTglOtf4IfqwD73CQin1r2wz6tWh05HnhaMYsy+KUmaCzXS7VqYunyg4V\nWEzT5HweA4ScVOIozNki2mgOYoRF7eWQqyiDnr/810xDRSPm9d4dl5g0Ria9\n+1d9V8/tT0uKVp7V1jixbf0lZZ/YgcJodj9HdaAXPxIM/ju+17pr14uPS6dT\n+vTWNKikDAV/hgoL0i8uVO4F0FkMENIyrmojGsUygwyNZtKaJKDltzfoeJmv\nY5/NkWXNYSZZ+EyuKCM0xmH5Gem4W/DQOYTM30ccqOeZQiP/WsM9XWLJXiw6\nY0IPNUQ+qad0Rua1NjX48E9uGG/TavLDFpUASOh4YpPNXA4sMvZfuVJSCr0C\nyOaU2g+q+sTONtq7SfEifFLqumFE3ZukR4bvJZj6sQDRpaWGyLYEDXBXsq8y\nS4WyrCwmmnC1S1qrs5vWkh7tYQcz7uZkWsWeukE6Iod/hTt/vzhtlIPAl/wi\nAPmxu1NVqw+lu/OsHAerfO8ZY73Xq2k+quFkhAuACN20XrZR5foJg51G9JuO\nkDAkNbmT3tRP0YXXjeo3TuNmnrLXI8q7kPWTy3ZMuyMGDEAClAkZyIYUjlpG\nD4XP\r\n=1I1M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJA4REtLUx7BlLGxt2p5GLiJd7i7TlUwMv14py5kRLTAiEAjcpobPi4IRAQitHYTyM3s9/nb2MfE0ZJycNPvneMPjU="}]},"maintainers":[{"name":"boris-turner","email":"boris.musa@turner.com"}],"_npmUser":{"name":"boris-turner","email":"boris.musa@turner.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amphora-fs_1.0.2-cnn.0_1570382924499_0.9483824781867682"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-30T01:47:37.546Z","1.0.1":"2019-08-30T01:47:37.965Z","modified":"2022-04-04T20:12:49.779Z","1.0.2-cnn.0":"2019-10-06T17:28:44.651Z"},"maintainers":[{"name":"boris-turner","email":"boris.musa@turner.com"}],"description":"File system utils for Amphora and the Clay ecosystem","license":"MIT","readme":"# Amphora FS\n\n[![CircleCI](https://circleci.com/gh/clay/amphora-fs.svg?style=svg)](https://circleci.com/gh/clay/amphora-fs)\n[![Coverage Status](https://coveralls.io/repos/github/clay/amphora-fs/badge.svg?branch=master)](https://coveralls.io/github/clay/amphora-fs?branch=master)\n\n\nUtility functions for working with the file system in Clay. This module will assume that the process which is running will be triggered from a directory that contains a `package.json` file and `/components` directory.\n\n# Installation\n\n```\nnpm install --save amphora-fs\n```\n\n---\n\n# Methods\n\n* **fileExists** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/fileExists) - test if a file exists\n* **getComponentModule** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getComponentModule) - get a component's `model.js`\n* **getComponentName** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getComponentName) - get a component's name, validating that it exists in your Clay instance\n* **getComponentPackage** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getComponentPackage) - get a npm component's `package.json`\n* **getComponentPath** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getComponentPath) - get a component's filepath\n* **getComponents** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getComponents) - get a list of all components in your Clay instance\n* **getFiles** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getFiles) - get files (that aren't test or documentation) in a directory\n* **getFolders** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getFolders) - get folders in a directory\n* **getIndices** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getIndices) - get all component references in an object\n* **getLayoutModule** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getLayoutModule) - get a layout's `model.js`\n* **getLayoutName** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getLayoutName) - get a layout's name, validating that it exists in your Clay instance\n* **getLayoutPath** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getLayoutPath) - get a layout's filepath\n* **getLayouts** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getLayouts) - get a list of all layouts in your Clay instance\n* **getSchemaPath** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getSchemaPath) - get the path for a layout's / component's schema\n* **getYaml** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/getYaml) - get and parse yaml files, including env variables (for `config.yml` and `local.yml`)\n* **isDirectory** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/isDirectory) - determine if a path is a directory\n* **readFilePromise** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/readFilePromise) - `fs.readFile` that returns a promise\n* **tryRequire** [(code|tests|docs)](https://github.com/clay/amphora-fs/tree/master/lib/tryRequire) - attempt to `require()` a file, with graceful fallback\n","readmeFilename":"README.md"}