{"_id":"@californian/require-local","_rev":"8-10d384ad197f1a2dfd6dbb23379a83f2","name":"@californian/require-local","description":"import local files specified in an object","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@californian/require-local","version":"0.1.0","description":"require local file via an object","main":"lib/requireLocal.js","directories":{"test":"test"},"scripts":{"test":"jasmine test"},"repository":{"type":"git","url":"git+https://github.com/Californian/require-local.git"},"keywords":["require","local","import","package","filesystem"],"author":{"name":"Albert J. Rodenius","email":"127ajr@gmail.com","url":"keybase.io/californian"},"license":"MIT","bugs":{"url":"https://github.com/Californian/require-local/issues"},"homepage":"https://github.com/Californian/require-local#readme","dependencies":{"@californian/get-leaf-nodes":"^0.1.2","app-root-path":"^1.0.0","clone":"^1.0.2"},"devDependencies":{"gulp":"^3.9.0","gulp-changed":"^1.2.1","gulp-debug":"^2.0.1","gulp-livescript":"^2.4.0","gulp-load-plugins":"^0.10.0","gulp-plumber":"^1.0.1","gulp-util":"^3.0.6","livescript":"^1.4.0","requireindex":"^1.1.0"},"_id":"@californian/require-local@0.1.0","_shasum":"23312adbbbc83a46e0161eb7f936113be031826a","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"californian","email":"127ajr@gmail.com"},"dist":{"shasum":"23312adbbbc83a46e0161eb7f936113be031826a","tarball":"https://registry.npmjs.org/@californian/require-local/-/require-local-0.1.0.tgz","integrity":"sha512-SSzSoSrWPPi9TtZv8dhLRoiQTP9jIDMcWwciyFncoSAZYpTHAaHJTQeMTk+WLNQ81lv5G2CueMhgpRXKWxyiwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGaq9e1VssVpuCRbBbqn/4EpGfR6Cx6BA225mBM25TaxAiEAma4RUqz8iZBsQJ1GIjX+LAazKBNmaO5MeCp+E0cvPFQ="}]},"maintainers":[{"name":"californian","email":"127ajr@gmail.com"}]},"0.1.1":{"name":"@californian/require-local","version":"0.1.1","description":"require local file via an object","main":"lib/requireLocal.js","directories":{"test":"test"},"scripts":{"test":"jasmine test"},"repository":{"type":"git","url":"git+https://github.com/Californian/require-local.git"},"keywords":["require","local","import","package","filesystem"],"author":{"name":"Albert J. Rodenius","email":"127ajr@gmail.com","url":"keybase.io/californian"},"license":"MIT","bugs":{"url":"https://github.com/Californian/require-local/issues"},"homepage":"https://github.com/Californian/require-local#readme","dependencies":{"@californian/get-leaf-nodes":"^0.1.2","app-root-path":"^1.0.0","clone":"^1.0.2"},"devDependencies":{"gulp":"^3.9.0","gulp-changed":"^1.2.1","gulp-debug":"^2.0.1","gulp-livescript":"^2.4.0","gulp-load-plugins":"^0.10.0","gulp-plumber":"^1.0.1","gulp-util":"^3.0.6","livescript":"^1.4.0","requireindex":"^1.1.0"},"_id":"@californian/require-local@0.1.1","_shasum":"3bddd78a8104019cb09b75c77b2588c4716f26eb","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"californian","email":"127ajr@gmail.com"},"dist":{"shasum":"3bddd78a8104019cb09b75c77b2588c4716f26eb","tarball":"https://registry.npmjs.org/@californian/require-local/-/require-local-0.1.1.tgz","integrity":"sha512-NAGoQqNzAVqe0qXrMamRRFc8mqSo/pC5CuqR3kCDNmgl4zO3jyx5NnV/1T/2UtNK9p4AWsST9Jdb5aOBnQwBUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDJlrc+2fVTPBxR9sfh0Y0Vh2NXohZ0xI1uBDX0Hr70wIgIwJ9rWGqb0+ySt3Zj7qnBSL0j1MthINy8kL1l2/WUzI="}]},"maintainers":[{"name":"californian","email":"127ajr@gmail.com"}]},"0.1.2":{"name":"@californian/require-local","version":"0.1.2","description":"require local file via an object","main":"lib/requireLocal.js","directories":{"test":"test"},"scripts":{"test":"jasmine test"},"repository":{"type":"git","url":"git+https://github.com/Californian/require-local.git"},"keywords":["require","local","import","package","filesystem"],"author":{"name":"Albert J. Rodenius","email":"127ajr@gmail.com","url":"keybase.io/californian"},"license":"MIT","bugs":{"url":"https://github.com/Californian/require-local/issues"},"homepage":"https://github.com/Californian/require-local#readme","dependencies":{"@californian/get-leaf-nodes":"^0.1.2","app-root-path":"^1.0.0","clone":"^1.0.2"},"devDependencies":{"gulp":"^3.9.0","gulp-changed":"^1.2.1","gulp-debug":"^2.0.1","gulp-livescript":"^2.4.0","gulp-load-plugins":"^0.10.0","gulp-plumber":"^1.0.1","gulp-util":"^3.0.6","livescript":"^1.4.0","requireindex":"^1.1.0"},"gitHead":"19ea964c5a326afee26cd7f7ad89eeb2f3dae1d2","_id":"@californian/require-local@0.1.2","_shasum":"815141ba429fed1d77f75ab557551c2f26732dae","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"californian","email":"127ajr@gmail.com"},"dist":{"shasum":"815141ba429fed1d77f75ab557551c2f26732dae","tarball":"https://registry.npmjs.org/@californian/require-local/-/require-local-0.1.2.tgz","integrity":"sha512-24LNG3aNmuS7ZSmIutdKWqsqKTdZgf0vqZZzNIuSzsiRGB5Ax3mgqcYJGuKb4Fz1nbw5siKVOTf5LTj+KURe/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3ftWLK+xISPoSowRWRUvbykaMOJ4n8M3xzYpLNruAegIhAPT2+bWOU6SQ+UkLc5thZiSOmnVeddH7zaerxhkGg1t4"}]},"maintainers":[{"name":"californian","email":"127ajr@gmail.com"}]},"0.1.3":{"name":"@californian/require-local","version":"0.1.3","description":"require local file via an object","main":"lib/requireLocal.js","directories":{"test":"test"},"scripts":{"test":"jasmine test"},"repository":{"type":"git","url":"git+https://github.com/Californian/require-local.git"},"keywords":["require","local","import","package","filesystem"],"author":{"name":"Albert J. Rodenius","email":"127ajr@gmail.com","url":"keybase.io/californian"},"license":"MIT","bugs":{"url":"https://github.com/Californian/require-local/issues"},"homepage":"https://github.com/Californian/require-local#readme","dependencies":{"@californian/get-leaf-nodes":"^0.1.2","app-root-path":"^1.0.0","clone":"^1.0.2"},"devDependencies":{"gulp":"^3.9.0","gulp-changed":"^1.2.1","gulp-debug":"^2.0.1","gulp-livescript":"^2.4.0","gulp-load-plugins":"^0.10.0","gulp-plumber":"^1.0.1","gulp-util":"^3.0.6","livescript":"^1.4.0","requireindex":"^1.1.0"},"gitHead":"0b8cf7ed2f2ca5e5ad36061d416c38bba41b9ed2","_id":"@californian/require-local@0.1.3","_shasum":"4207bc208a9d00bd5cb99eb520876e7196ad7427","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"californian","email":"127ajr@gmail.com"},"dist":{"shasum":"4207bc208a9d00bd5cb99eb520876e7196ad7427","tarball":"https://registry.npmjs.org/@californian/require-local/-/require-local-0.1.3.tgz","integrity":"sha512-hUVQ1nrLWIkoAwwzZ4jMsbT4hHb3U7q0GTl9HcGToz/DLHJfh5y+3OFX6HbA1AQJYMJGaDpC3PhjKiRWE+z0Rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpB1CsZy+JGNlWwp1dpPe0kd10lkQsO2jGVZkgT402vgIhANY11gpPuBS+GtkIpocFv0wvTVolSg/Bb/OWynW6NSPT"}]},"maintainers":[{"name":"californian","email":"127ajr@gmail.com"}]},"0.1.4":{"name":"@californian/require-local","version":"0.1.4","description":"import local files specified in an object","main":"lib/requireLocal.js","directories":{"test":"test"},"scripts":{"test":"jasmine test"},"repository":{"type":"git","url":"git+https://github.com/Californian/require-local.git"},"keywords":["require","local","import","package","filesystem"],"author":{"name":"Albert J. Rodenius","email":"127ajr@gmail.com","url":"keybase.io/californian"},"license":"MIT","bugs":{"url":"https://github.com/Californian/require-local/issues"},"homepage":"https://github.com/Californian/require-local#readme","dependencies":{"@californian/get-leaf-nodes":"^0.1.4","app-root-path":"^1.0.0","clone":"^1.0.2"},"devDependencies":{"gulp":"^3.9.0","gulp-changed":"^1.2.1","gulp-debug":"^2.0.1","gulp-livescript":"^2.4.0","gulp-load-plugins":"^0.10.0","gulp-plumber":"^1.0.1","gulp-util":"^3.0.6","livescript":"^1.4.0","requireindex":"^1.1.0"},"gitHead":"c390218a0ab73d2255586d017883f8da1e00c08d","_id":"@californian/require-local@0.1.4","_shasum":"626a96400988cbb746f1bd3f1f966bb8b05aa680","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"californian","email":"127ajr@gmail.com"},"dist":{"shasum":"626a96400988cbb746f1bd3f1f966bb8b05aa680","tarball":"https://registry.npmjs.org/@californian/require-local/-/require-local-0.1.4.tgz","integrity":"sha512-MCad2f7qD4gqJDh7DY29c2esavnvelMy7YMzbKzoB9awCmwADENapKRKaYYhQrnfO4yoWDSjoCYoTCaXvJX+hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr4dN6ANvkJLNZHeX3IU7sGSgYhkJS2XljHj5rN0L2MAIhAPewbb7gYgRuU2uiW81UQCW3AQuAxbrl8Vzmg2cBZOjX"}]},"maintainers":[{"name":"californian","email":"127ajr@gmail.com"}]},"0.2.0":{"name":"@californian/require-local","version":"0.2.0","description":"import local files specified in an object","main":"lib/requireLocal.js","directories":{"test":"test"},"scripts":{"test":"jasmine test"},"repository":{"type":"git","url":"git+https://github.com/Californian/require-local.git"},"keywords":["require","local","import","package","filesystem"],"author":{"name":"Albert J. Rodenius","email":"127ajr@gmail.com","url":"keybase.io/californian"},"license":"MIT","bugs":{"url":"https://github.com/Californian/require-local/issues"},"homepage":"https://github.com/Californian/require-local#readme","dependencies":{"@californian/get-leaf-nodes":"^0.1.4","app-root-path":"^1.0.0","clone":"^1.0.2"},"devDependencies":{"gulp":"^3.9.0","gulp-changed":"^1.2.1","gulp-debug":"^2.0.1","gulp-livescript":"^2.4.0","gulp-load-plugins":"^0.10.0","gulp-plumber":"^1.0.1","gulp-util":"^3.0.6","livescript":"^1.4.0","requireindex":"^1.1.0"},"gitHead":"c390218a0ab73d2255586d017883f8da1e00c08d","_id":"@californian/require-local@0.2.0","_shasum":"7db8749886bd1143c4f5df4b8f20c04709355a0c","_from":".","_npmVersion":"2.13.4","_nodeVersion":"0.12.7","_npmUser":{"name":"californian","email":"127ajr@gmail.com"},"dist":{"shasum":"7db8749886bd1143c4f5df4b8f20c04709355a0c","tarball":"https://registry.npmjs.org/@californian/require-local/-/require-local-0.2.0.tgz","integrity":"sha512-Ep8/zxDrD2UrqRlDNFzg1ODyuusyFBxpqbuzz+4/fRLAnBXFwfABF+XBbvHwCmGwJUFsvSzue9I9PBt69Dcomw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAw0Z8hw+gii4BHcX7SjUQa/Exg/stqFJsamWKKH0KoQIgKkoCG7Euy7i0PmaFRYovoTayF+gEecDxhoKrXlyZ4lM="}]},"maintainers":[{"name":"californian","email":"127ajr@gmail.com"}]}},"readme":"`require-local`\n===============\n\n`require-local` is a tool for requiring packages from the local filesystem.\nPaths to be imported (via `require`) are defined in a javascript object. It \ntakes an object defining the paths to import and, optionally, a string defining \nthe format of the output. Bu default, it returns an eval-able string of require \nstatements, one for each leaf node in the object (and with variable names \nmatching the name of the file in the leaf node). If \"array\" is the second \nargument, it returns an array of the functions of the leaf nodes. If \"object\" \nis the second argument, it returns an object matching the input object, but \nwith the leaf nodes as keys whose values are the imported modules.\n\nusage\n-----\n\n```\nvar requireLocal = require(\"require-local\");\n\nrequireLocalConfig = {\n  test: {\n    localPackages: {\n      a: {\n        b: [\"c\", \"d\"]\n      },\n      e: \"f\",\n      g: {\n        h: [\n          \"i\", {\n            j: [\"k\", \"l\"]\n          }\n        ]\n      }\n    }\n  }\n};\n\neval requireLocal(requireLocalConfig);\n```\n\noutput\n------\n\n```\nvar c = require('YOUR-APP-ROOT-PATH/test/localPackages/a/b/c');\nvar d = require('YOUR-APP-ROOT-PATH/test/localPackages/a/b/d');\nvar f = require('YOUR-APP-ROOT-PATH/test/localPackages/e/f');\nvar i = require('YOUR-APP-ROOT-PATH/test/localPackages/g/h/i');\nvar k = require('YOUR-APP-ROOT-PATH/test/localPackages/g/h/j/k');\nvar l = require('YOUR-APP-ROOT-PATH/test/localPackages/g/h/j/l');\n```\n","maintainers":[{"name":"californian","email":"127ajr@gmail.com"}],"time":{"modified":"2022-06-12T15:37:35.002Z","created":"2015-07-27T17:01:31.980Z","0.1.0":"2015-07-27T17:01:31.980Z","0.1.1":"2015-07-27T17:03:11.148Z","0.1.2":"2015-07-27T17:46:20.029Z","0.1.3":"2015-07-27T17:49:53.339Z","0.1.4":"2015-07-27T17:52:21.257Z","0.2.0":"2015-10-26T05:51:34.991Z"},"homepage":"https://github.com/Californian/require-local#readme","keywords":["require","local","import","package","filesystem"],"repository":{"type":"git","url":"git+https://github.com/Californian/require-local.git"},"author":{"name":"Albert J. Rodenius","email":"127ajr@gmail.com","url":"keybase.io/californian"},"bugs":{"url":"https://github.com/Californian/require-local/issues"},"license":"MIT","readmeFilename":"README.md"}