{"_id":"codesandboxer","_rev":"322380","name":"codesandboxer","description":"Fetch files from a git repository and upload them to codesandbox","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"time":{"modified":"2021-06-04T01:28:41.000Z","created":"2018-04-22T06:15:51.497Z","1.0.3":"2019-07-15T05:26:21.112Z","1.0.2":"2019-07-15T04:37:07.436Z","1.0.1":"2019-02-19T03:31:52.782Z","1.0.0":"2019-02-19T03:19:00.001Z","0.7.2":"2018-11-26T00:54:00.440Z","0.7.1":"2018-11-20T05:58:31.177Z","0.7.0":"2018-11-19T12:01:57.939Z","0.6.1":"2018-11-15T05:01:42.425Z","0.6.0":"2018-10-05T06:52:07.885Z","0.5.0":"2018-09-04T04:49:36.158Z","0.4.0":"2018-06-01T02:56:53.780Z","0.3.0":"2018-05-28T05:57:58.271Z","0.2.4":"2018-05-14T07:08:46.306Z","0.2.3":"2018-05-14T07:03:41.451Z","0.2.2":"2018-05-11T05:36:43.773Z","0.2.1":"2018-04-28T09:34:02.495Z","0.2.0":"2018-04-27T04:10:24.584Z","0.1.1":"2018-04-22T07:29:39.439Z","0.1.0":"2018-04-22T06:15:51.497Z"},"users":{},"author":{"name":"Ben Conolly"},"repository":{"type":"git","url":"git+https://github.com/codesandbox/codesandboxer.git"},"versions":{"1.0.3":{"name":"codesandboxer","version":"1.0.3","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/codesandbox/codesandboxer.git"},"bugs":{"url":"https://github.com/codesandbox/codesandboxer/issues"},"homepage":"https://github.com/codesandbox/codesandboxer#readme","_id":"codesandboxer@1.0.3","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"a2530a15eb9395f2c6f25e4b8064063dfb7b12f9","size":15948,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-1.0.3.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_1.0.3_1563168380836_0.7408077918981624"},"_hasShrinkwrap":false,"publish_time":1563168381112,"_cnpm_publish_time":1563168381112},"1.0.2":{"name":"codesandboxer","version":"1.0.2","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/codesandbox/codesandboxer.git"},"bugs":{"url":"https://github.com/codesandbox/codesandboxer/issues"},"homepage":"https://github.com/codesandbox/codesandboxer#readme","_id":"codesandboxer@1.0.2","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"8478d301ec4b5292328c3a6b3e5644dfe2f24af2","size":15900,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-1.0.2.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_1.0.2_1563165427223_0.023895342631969463"},"_hasShrinkwrap":false,"publish_time":1563165427436,"_cnpm_publish_time":1563165427436},"1.0.1":{"name":"codesandboxer","version":"1.0.1","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/codesandbox/codesandboxer.git"},"bugs":{"url":"https://github.com/codesandbox/codesandboxer/issues"},"homepage":"https://github.com/codesandbox/codesandboxer#readme","_id":"codesandboxer@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"b294a55de488da2eae5cfc6fdd663f07fbe6bb3c","size":15889,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-1.0.1.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_1.0.1_1550547112548_0.16558742888774103"},"_hasShrinkwrap":false,"publish_time":1550547112782,"_cnpm_publish_time":1550547112782},"1.0.0":{"name":"codesandboxer","version":"1.0.0","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"4bd37900960fe70ac50f67b585cf7ca628e9af09","size":15860,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-1.0.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_1.0.0_1550546339835_0.38810373317811275"},"_hasShrinkwrap":false,"publish_time":1550546340001,"_cnpm_publish_time":1550546340001},"0.7.2":{"name":"codesandboxer","version":"0.7.2","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@0.7.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"f14d8cab9971cf6c535d83b0f40c24c62256d511","size":15501,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.7.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.7.2.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.7.2_1543193640287_0.3031075623600197"},"_hasShrinkwrap":false,"publish_time":1543193640440,"_cnpm_publish_time":1543193640440},"0.7.1":{"name":"codesandboxer","version":"0.7.1","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@0.7.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"84a478a763364ae67bff65a2f3793bcc4c82c7f5","size":15439,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.7.1.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.7.1_1542693511008_0.32138013626841877"},"_hasShrinkwrap":false,"publish_time":1542693511177,"_cnpm_publish_time":1542693511177},"0.7.0":{"name":"codesandboxer","version":"0.7.0","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@0.7.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"dd1c5413de1834d9a6244759b54c9092795041a7","size":15264,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.7.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.7.0_1542628917780_0.9456414241633693"},"_hasShrinkwrap":false,"publish_time":1542628917939,"_cnpm_publish_time":1542628917939},"0.6.1":{"name":"codesandboxer","version":"0.6.1","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@0.6.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"34920a34739d6cf10de55c12ca54e8ead42da6f3","size":14452,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.6.1.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.6.1_1542258102250_0.8566846915973345"},"_hasShrinkwrap":false,"publish_time":1542258102425,"_cnpm_publish_time":1542258102425},"0.6.0":{"name":"codesandboxer","version":"0.6.0","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"path-browserify":"^1.0.0","lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@0.6.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"180f3673a9bb8ec21f6a570642b547030afad3b0","size":14825,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.6.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.6.0_1538722327661_0.4987966372118169"},"_hasShrinkwrap":false,"publish_time":1538722327885,"_cnpm_publish_time":1538722327885},"0.5.0":{"name":"codesandboxer","version":"0.5.0","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"lz-string":"^1.4.4","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@0.5.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"b730232958a124775c382328c41dbaf78e5b8627","size":13783,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.5.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.5.0_1536036576034_0.6016197703002917"},"_hasShrinkwrap":false,"publish_time":1536036576158,"_cnpm_publish_time":1536036576158},"0.4.0":{"name":"codesandboxer","version":"0.4.0","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"scripts":{"build":"babel src -d dist --ignore  **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"files":["dist"],"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@0.4.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"a373e56e9d8f16c5f15b5c3c2e5c662885d35804","size":13311,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.4.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.4.0_1527821813707_0.2977602729873745"},"_hasShrinkwrap":false,"publish_time":1527821813780,"_cnpm_publish_time":1527821813780},"0.3.0":{"name":"codesandboxer","version":"0.3.0","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"repository":{"type":"git","url":"git+https://github.com/Noviny/codesandboxer.git"},"files":["dist"],"bugs":{"url":"https://github.com/Noviny/codesandboxer/issues"},"homepage":"https://github.com/Noviny/codesandboxer#readme","_id":"codesandboxer@0.3.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"27db0a95276804777ae71dc216e7222c38c46e1c","size":12044,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.3.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.3.0_1527487078204_0.408316227988619"},"_hasShrinkwrap":false,"publish_time":1527487078271,"_cnpm_publish_time":1527487078271},"0.2.4":{"name":"codesandboxer","version":"0.2.4","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0","form-data":"^2.3.2","babel-runtime":"^6.26.0"},"repository":{"type":"git","url":"git+https://github.com/Noviny/react-codesandboxer.git"},"files":["dist"],"bugs":{"url":"https://github.com/Noviny/react-codesandboxer/issues"},"homepage":"https://github.com/Noviny/react-codesandboxer#readme","_id":"codesandboxer@0.2.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"9fbd34a359cf8ac20939bec62caac618dfeddb1f","size":11364,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.2.4.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.2.4_1526281726162_0.03015472841844491"},"_hasShrinkwrap":false,"publish_time":1526281726306,"_cnpm_publish_time":1526281726306},"0.2.3":{"name":"codesandboxer","version":"0.2.3","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0","babel-runtime":"^6.26.0"},"repository":{"type":"git","url":"git+https://github.com/Noviny/react-codesandboxer.git"},"files":["dist"],"bugs":{"url":"https://github.com/Noviny/react-codesandboxer/issues"},"homepage":"https://github.com/Noviny/react-codesandboxer#readme","_id":"codesandboxer@0.2.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"364fe052a7f590b94d5c4f3210dd51af020d712e","size":11348,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.2.3.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.2.3_1526281421347_0.4722087849159502"},"_hasShrinkwrap":false,"publish_time":1526281421451,"_cnpm_publish_time":1526281421451},"0.2.2":{"name":"codesandboxer","version":"0.2.2","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0"},"repository":{"type":"git","url":"git+https://github.com/Noviny/react-codesandboxer.git"},"files":["dist"],"bugs":{"url":"https://github.com/Noviny/react-codesandboxer/issues"},"homepage":"https://github.com/Noviny/react-codesandboxer#readme","_id":"codesandboxer@0.2.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"78fee363c4733974fd39e85c3f93549c54241be1","size":11332,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.2.2.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.2.2_1526017003691_0.9591359104003865"},"_hasShrinkwrap":false,"publish_time":1526017003773,"_cnpm_publish_time":1526017003773},"0.2.1":{"name":"codesandboxer","version":"0.2.1","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0"},"repository":{"type":"git","url":"git+https://github.com/Noviny/react-codesandboxer.git"},"files":["dist"],"bugs":{"url":"https://github.com/Noviny/react-codesandboxer/issues"},"homepage":"https://github.com/Noviny/react-codesandboxer#readme","_id":"codesandboxer@0.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"83ce9bae3b0fad17e8703f6c705bb4754f18eeb9","size":11244,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.2.1.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.2.1_1524908042313_0.4700041460940625"},"_hasShrinkwrap":false,"publish_time":1524908042495,"_cnpm_publish_time":1524908042495},"0.2.0":{"name":"codesandboxer","version":"0.2.0","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0"},"files":["dist"],"_id":"codesandboxer@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"7b44c126452c4bd69d64f4ddc270948ce51dc33f","size":11135,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.2.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.2.0_1524802224510_0.07158239570587122"},"_hasShrinkwrap":false,"publish_time":1524802224584,"_cnpm_publish_time":1524802224584},"0.1.1":{"name":"codesandboxer","version":"0.1.1","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0"},"files":["dist"],"_id":"codesandboxer@0.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"d5908125a7254e17bad95980e58c23ed858912fb","size":10618,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.1.1.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.1.1_1524382179382_0.06614474894448819"},"_hasShrinkwrap":false,"publish_time":1524382179439,"_cnpm_publish_time":1524382179439},"0.1.0":{"name":"codesandboxer","version":"0.1.0","description":"Fetch files from a git repository and upload them to codesandbox","main":"dist/index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"codesandbox":"^1.1.14","isomorphic-unfetch":"^2.0.0"},"files":["dist"],"_id":"codesandboxer@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"shasum":"1d0537e2223b86cc19975b72d407e82536ebc6ed","size":10721,"noattachment":false,"key":"/codesandboxer/-/codesandboxer-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/codesandboxer/download/codesandboxer-0.1.0.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"npm:noviny","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer_0.1.0_1524377751358_0.6705684819016133"},"_hasShrinkwrap":false,"publish_time":1524377751497,"_cnpm_publish_time":1524377751497}},"readme":"# CodeSandboxer\n\nA quick loader to load an example into `codesandbox`. Takes in an entry file from github or bitbucket that loads a react component and upload it to codesandbox.\n\nAll you need to provide are the repository information, the path to the example, and the path to the `package.json`.\n\n## What it Does\n\nCodesandbox collects files starting from a single example file and uploads the bundle to codesandbox, returning you the sandbox ID that these files generate. It includes by default an index file to render your example.\n\n## Why this is cool\n\n### Intelligently Fetches Dependencies\n\nUsing the example file and the `package.json`, dependencies that the example uses will be added to the sandbox, and everything else will be left.\n\n### Dynamic Import Following\n\nWhen codesandbox is pointed at a file, it can resolve relative imports into that file, meaning that examples relying on utils or images will resolve correctly.\n\n### Customisable Usages\n\nCodesandboxer is set up so if you provide your git information and a relative path to where the example is in the repository, it will take care of everything for you. Alternatively, if you have some of the content, or wish to edit it (for example replacing particular relative imports before upload) you can deeply customise the information before it is sent.\n\nYou can use this purely to help format your files for codesandbox, or you can rely much more heavily on it to do work for you.\n\n## API\n\n### Quick Start\n\nThere is an assumed workflow to codesandboxer:\n\n```js\nimport {\n  fetchFiles,\n  finaliseCSB,\n  sendFilesToCSB\n} from 'codesandboxer'\n\n/*\nfetchedInfo is an object containing `files`, the internal exports of the target file, and `dependencies`, the external dependencies of all files.\n*/\nlet fetchedInfo = await fetchFiles({\n  examplePath: 'fixtures/simple'\n  gitInfo: {\n    host: 'github',\n    account: 'Noviny',\n    repository: 'codesandboxer',\n  }\n})\n\n// This also returns a finalised files and finalised dependencies property, in case you want to introspect those before sending.\nlet finalisedInformation = finaliseCSB(fetchedInfo)\nlet csbInfo = await sendFilesToCSB(finalisedInformation.parameters)\nconsole.log('Our sandbox\\'s ID:', csbInfo.sandboxId)\nconsole.log('Simple sandbox URL:', csbInfo.sandboxUrl)\n```\n\nIn addition to these three main functions in the workflow, there are also several helper functions that can be used separately. We are going to look at the three main functions first, then the helper functions.\n\n### fetchFiles()\n\n`fetchFiles` takes in the necessary information to assemble your files bundle, and returns a promise with with an object that contains:\n\n`files`: An object of the files that are to be included in the bundle, with the entry file named as 'example.js'\n\n`dependencies`: An object containing all the external dependencies that will be required from npm to assemble your package.\n\nIt takes a single argument which is an object, the properties of which are detailed below.\n\nNote that only the examplePath and gitInfo are required. Everything else can be inferred.\n\n#### `examplePath`: string\n\nexamplePath is always required, and is a path relative to the root of the git repository. Assuming no example is provided, this file will be fetched from github or bitbucket.\n\n#### `gitInfo`:\n\nAn object containing the information to make fetch requests from github or bitbucket. There are three mandatory properties and one optional property.\n\n* account: the name of the account the repository is under\n* repository: the repository name\n* host: where your content is hosted, accepts 'bitbucket' or 'github'\n* branch: optionally you can define what branch to pull from (fun fact, also accepts git hashes). Defaults to master if no branch is required.\n\nThis information is needed to fetch any additional files needed.\n\n#### pkgJSON\n\nThis is an optional property, that can include a package.JSON's contents as an object or a string which is the path relative to the git source directory to fetch the `package.json` from your git repository. pkgJSON finally accepts a promise that can be resolve to either of these two other types.\n\nThe contents of the eventual resolved `package.json` will be used to get the correct version ranges of packages your example is relying upon, and assemble a package.json for codesandbox to use in pulling them in.\n\n#### importReplacements: Array\n\nimportReplacements are used before parsing what imports are needed by a file, to allow you to keep control of what files are uploaded.\n\nThe biggest use-case of this is if you are relying on your `src/` directory, but want to use your package from npm in the uploaded example.\n\nIf you pass in a path ending in a \\*, it will replace all that match the start of the pattern with the new pattern.\n\nWe also expose the logic that replaces imports as `replaceImports()`, in case you want to transform a file before passing it to us.\n\n#### example\n\nIf you do not want the example content to be fetched (for example, you have access to the raw code, or want to transform it yourself before analysis), you can pass in the example file as raw here (just a string). You can also pass a promise that resolves to an example's file's contents.\n\n#### extensions\n\nAn array of extensions that will be treated as javascript files. For example, if you pass in [`.jsx`], when loading files, we will attempt to fetch `.jsx` files as well as `.js` and `.json` files. The extension type of your example is automatically added, so if you pass in the `examplePath` `my/cool/example.jsx`, you will not need to pass in the jsx extension.\n\nIf your example file is fo type `.ts` or `.tsx` both are added.\n\n### finaliseCSB(compiledInfo, config)\n\nThe FinaliseCSB function is used to generate a parameter hash of the file contents that can be sent to codesandbox using `sendFilesToCSB`. It takes in the result of `fetchFiles`, however is separate so you can intercept files and either examine or modify them before it is sent to codesandbox.\n\nThe config object is optional, and can have any of the following properties:\n\n#### name\n\nThe name for the sandbox once created.\n\n#### extraFiles\n\nPass in files separately to fetching them. Useful to go alongisde specific replacements in importReplacements.\n\nThe shape of the files object is\n\n```\n{\n  fileName: {\n    content: string\n  }\n}\n```\n\nThe filename is the absolute path where it will be created on CodeSandbox, and the content is the file's contents as a string.\n\nIf a fileName exists in your provided files, it will not be fetched when it is referenced.\n\n#### extraDependencies\n\nAn object with packages formatted in the same way as the dependencies in a `package.json` which will always be included in a sandbox, even if it is not found within the example's tree.\n\n### sendFilesToCSB()\n\nAccepts the generated `parameters` from the codesandbox API, and posts them for you, returning a promise that resolves to an object that has both the sandbox ID, as well as the base URL to open the sandbox on the example page.\n\n### parseFile(file, pkgJSON)\n\n`parseFile` is our internal method for finding all the import information about a file.\n\nIt accepts a raw file, or a promise that resolves to a raw file, and a `package.json` as an object, or a promise that resolves to a package.json as an object.\n\nIt returns an object with the shape:\n\n```\n{\n  file: // the raw file code\n  deps: // the external dependencies of the package with the version range from the package.json\n  internalImports: // a list of the internal imports that the file relies upon.\n}\n```\n\n### replaceImports(code, Array<[old, new]>)\n\nThe internal method we use to replace imports. This takes in a raw file, and an array of imports to replace. The first item in the array is what will be replaced, and the second is what it will be replaced with.\n\nIf you pass in a path ending in a \\*, it will replace all that match the start of the pattern with the new pattern.\n\n### fetchRelativeFile( path, pkg, importReplacements: Array<[string, string]>, gitInfo, config)\n\nThis function takes in a path to a file relative to the git route, and along with the git information, fetches. It will also replace the imports as provided for javascript files.\n\nIt return a promise with a parsed file which is an object that looks like:\n\n```\n{\n  file: string,\n  deps: { [string]: string },\n  internalImports: Array<string>,\n  path: // the new path that this file will be added to within codesandbox, and which other files can now use as an importReplacement,\n}\n```\n\nCurrently the shape of the config object should be `{ allowJSX: boolean }`. If the config object is not provided, this defaults to false.\n\n### getSandboxUrl(id, type)\n\nPassed in a sandbox id, return a url to that sandbox. Optionally takes in a type which can be used to make the url an embed url by passing in the type `'embed'`.\n\n## Things to do better\n\n### Support commonJS modules\n\nCurrently we are scanning for import statements, and commonJS requires are not supported.\n\n### Support beyond react\n\nThe principal developer of this works in a react context, however the core good features (file fetching from relative imports, and packages, parsing all those files into a bundle codesandbox understands, posting to codesandbox) are valuable to any codesandbox project.\n\nIf you want to use codesandboxer to upload something other than react, please get in contact with us so we can help out.\n\n### Does not play nicely with inline webpack loaders\n\nIf you are using inline webpack loaders, we don't know how to parse those. This is not on our roadmap to support.\n\n### Designed browser-first\n\nAs `codesandboxer` is designed to operate from the browser, it's not using an AST to parse the files it is reading. If you are using it in a node context, implementing this functionality using an AST generator such as babel will likely lead to safer, more precise code.\n","_attachments":{},"homepage":"https://github.com/codesandbox/codesandboxer#readme","bugs":{"url":"https://github.com/codesandbox/codesandboxer/issues"},"license":"MIT"}