{"name":"codesandboxer-fs","version":"0.2.1","description":"Deploy local files to codesandbox, using an example file as an entry point","main":"index.js","author":{"name":"Ben Conolly"},"license":"MIT","dependencies":{"pkg-dir":"^2.0.0","codesandboxer":"^0.3.0"},"bin":{"codesandboxer":"cli.js"},"devDependencies":{"react-node-resolver":"^1.0.1"},"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-fs@0.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"integrity":"sha512-TqmWYVSI3zl4PeNIRkzghdqAx7iYzA4EvmMGioO0cRV5F5nKuZmzGubY1a4Hay5imB8C3DvzCSnKG0U+C4usMw==","shasum":"ce5f1d5a00781ab9472e78e86de1182bfcd745fe","tarball":"http://registry-npm.ywwl.com/codesandboxer-fs/download/codesandboxer-fs-0.2.1.tgz","fileCount":7,"unpackedSize":12302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDKR5CRA9TVsSAnZWagAAd6UQAJuzrp9/tD+x8OgxTPJF\n0DfwMRxhIERSiHx0ZCKQJYGrXdwT2hHmq4fZrtIqgrJah1resTFbSDBUCq28\ncSkq+SpjIPcEW3wqq05iUb7BRZH0rUzEU3pvtlaR+UAHVcj4NQ2tc2lzdpCb\nEFW145YMEZVGrkJrOrVKp8uszydQwqOhSQequC0HZvGyNP1uVcu6IvdVGiIn\nZMha92y9eoQEkd21sHWYNp/KzjfLPi+GFQlbbfApZMhKS2UoQmeA669hK5U7\nLwIRsIbDSwlP9Fn0EKinaZYLO3jPndbWpv01zFsJ1KWzrQmPkoruQ7+DBPfg\n/iuPTZvQ01b6FH7NbOSbCCMtM1nWUHcTF1tMTe0fPmvCpDQqDGAyaH9dks7s\nUtbhWPOI34IExdZUQO7mVROeUG2FnEZ7JuSHFewCgzzLxliKkNHBSjq12JyG\npgTzNosGvG/j0uSUHJu/IfBW3dtXzAfzccz0Z5AjrS2OnztTvWSX29l2IzWm\n8Yh8o68WtPNd7B0IWsTZK5Dh5rYQfBvDGSBedQpuF4AQ6k5ifHVMDQ5CA5wy\nffZsn+XUdnHofX7U8CKLJ9LqRCE8sblVHOYVsaOQhJL7ZCmtnO4PkEW+D28H\ncY7Gi0MuZdVomaA6zQsQWKNUSJoI8E+0FYwDS7qVovEdXN6onKxnIUn2mSBP\n0fNp\r\n=dkji\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBg5YceYG5zGAmR4UAKPt3l4t25cenUJpAKpJXQzT8P5AiAGqJgTnUvx/6JkpOCGTGOQI2V3or65JqviWHSgAv8OqA=="}],"size":4749,"noattachment":false,"key":"/codesandboxer-fs/-/codesandboxer-fs-0.2.1.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codesandboxer-fs_0.2.1_1527555192934_0.41894071798993626"},"_hasShrinkwrap":false,"readme":"# codesandboxer-fs\n\nDeploy a single javascript file to codesandbox as a react entry point, bundling up other files you need, as well as the relevant dependencies, using `codesandboxer`'s default package under the hood to bundle files.\n\n## Installation\n\n```\n$ yarn global add codesandboxer-fs\n```\n\nor\n\n```\n$ npm i -g codesandboxer-fs\n```\n\n## Base Usage\n\n```\n$ codesandboxer some/file/path.js\n```\n\nThis will take this file, upload it and its dependent files to codesandbox, and assume that the file passed in is a renderable react component. It will also bundle any needed dependencies from your `package.json`\n\nThe response will look something like\n\n```json\n{\n  \"sandboxId\": \"481nzy3v84\",\n  \"sandboxUrl\": \"https://codesandbox.io/s/481nzy3v84?module=/example\"\n}\n```\n\nwhich will be printed to your console.\n\n`codesandboxer-fs` uses the context of the package the target file is from, bases its available npm dependencies on that file's `package.json`, and will not include files imported from places outside this scope.\n\nIf you point at a file with an extension that is not '.js', that file type will be loaded using our '.js' logic. This is to allow extensions such as '.jsx'.\n\n## Flags\n\n* `--dry -d` - this flag bundles the files, and prints them to the console, as well as the list of files to be sent to codesandbox.\n\n* `--name -n` - this flag names the created sandbox, making the base link more informative when shared.\n\n* allowedExtensions - this flag provides additional extensions that will be accepted. Note that the extension type of your target file is automatically added. The format is `.jsx,.ts`, a comma separated list of file types.\n\n* `--template -t` - a string of what template to use in sending files to codesandbox. Current officially supported templates are `react` and `react-typescript`.\n\n## Why use this instead of the codesandbox cli?\n\nThe codesandbox CLI is intended to upload an entire create-react-app project, and as such is not designed to cherry-pick a file. Codesandboxer's goal is fundamentally different, in that it wants to focus on a single component, such as an example. Codesandboxer is going to be more useful if you want to share proposed changes to a component within an existing project with someone, while codesandbox will be better for uploading and looking at an entire website.\n","publish_time":1527555193091,"_cnpm_publish_time":1527555193091,"dist-tags":{"latest":"1.0.3"}}