{"_id":"filestack-loader","_rev":"5-63b1a48104fe52b75d831ec7dbe9eccf","name":"filestack-loader","dist-tags":{"latest":"3.0.4"},"versions":{"3.0.1":{"name":"filestack-loader","version":"3.0.1","license":"SEE LICENSE IN LICENSE","main":"dist/loader.js","files":["dist"],"scripts":{"build":"rollup -c","build-test":"node scripts/build_test.js","pretest":"npm run build && npm run build-test","test":"http-server ./test -o","lint":"eslint lib","release-start":"release-o-tron --start --with-build","release-finish":"release-o-tron --finish","publish":"node scripts/publish.js"},"dependencies":{},"devDependencies":{"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","eslint":"^3.5.0","eslint-config-airbnb-base":"^8.0.0","eslint-plugin-html":"^1.5.2","eslint-plugin-import":"^1.16.0","http-server":"^0.9.0","release-o-tron":"http://static.filestackapi.com/packages/release-o-tron/release-o-tron-1.3.6.tar.gz","rollup":"^0.41.6","rollup-plugin-babel":"^2.7.1"},"pre-commit":["lint"],"gitHead":"03ac9c99127a171b12df0f3cd5034bb1df661566","description":"Loader for Filestack's stuff running in the browser.","_id":"filestack-loader@3.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"filestack-dev","email":"dev@filestack.com"},"dist":{"integrity":"sha512-2aXihMIRz2EIdLF+wGFkRWt7UAfyjbD8FOorS4Dkk8nWerQXrPNpNQZQ4iTdLDuoa+swu6hwLYm+EP6FS8Lzxw==","shasum":"42b3708e81b86f09e2ff9e0090ecb7709d548642","tarball":"https://registry.npmjs.org/filestack-loader/-/filestack-loader-3.0.1.tgz","fileCount":6,"unpackedSize":14281,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSLgPcogLn3tiMaT7HfQGK6XtrXGEEeOhtvBrPBft0qAiEApfqN/LtVT2j1Z0dQzblPuzHEQhYedY3EFRKcNnS0tDc="}]},"maintainers":[{"name":"filestack-dev","email":"dev@filestack.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filestack-loader_3.0.1_1521821118740_0.1316674322865634"},"_hasShrinkwrap":false},"3.0.2":{"name":"filestack-loader","version":"3.0.2","license":"SEE LICENSE IN LICENSE","main":"dist/loader.js","files":["dist"],"scripts":{"build":"rollup -c","build-test":"node scripts/build_test.js","pretest":"npm run build && npm run build-test","test":"http-server ./test -o","lint":"eslint lib","release-start":"release-o-tron --start --with-build","release-finish":"release-o-tron --finish"},"dependencies":{},"devDependencies":{"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","eslint":"^3.5.0","eslint-config-airbnb-base":"^8.0.0","eslint-plugin-html":"^1.5.2","eslint-plugin-import":"^1.16.0","http-server":"^0.9.0","release-o-tron":"http://static.filestackapi.com/packages/release-o-tron/release-o-tron-1.3.6.tar.gz","rollup":"^0.41.6","rollup-plugin-babel":"^2.7.1"},"pre-commit":["lint"],"gitHead":"da87b76954233508dc405633bb3c03d82c436b57","description":"## Installation","_id":"filestack-loader@3.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"filestack-dev","email":"dev@filestack.com"},"dist":{"integrity":"sha512-1BugnAR3Q3pvuOmIIlGCF58OfVs62brDTeF3N+x5xUxHi1kXr1fukqRxHLtkFGo4ouuIRYndsHeq8WSWv/vIkw==","shasum":"0e8e8e002d51cf66c6b393cb0303d1eb79b4683b","tarball":"https://registry.npmjs.org/filestack-loader/-/filestack-loader-3.0.2.tgz","fileCount":6,"unpackedSize":12902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfoSzLDRcdiifetCj+7Z5Ek9f3RYr5c3+TAucLXtEgNQIhAPpVufpR/2UCV2tZYPUaumj036Xdm6OQ4tGCsfXVoBc/"}]},"maintainers":[{"name":"filestack-dev","email":"dev@filestack.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filestack-loader_3.0.2_1521821327535_0.7220576340537037"},"_hasShrinkwrap":false},"3.0.3":{"name":"filestack-loader","version":"3.0.3","license":"SEE LICENSE IN LICENSE","main":"dist/loader.js","files":["dist"],"scripts":{"build":"rollup -c","build-test":"node scripts/build_test.js","pretest":"npm run build && npm run build-test","test":"http-server ./test -o","lint":"eslint lib","release-start":"release-o-tron --start --with-build","release-finish":"release-o-tron --finish"},"dependencies":{},"devDependencies":{"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","eslint":"^3.5.0","eslint-config-airbnb-base":"^8.0.0","eslint-plugin-html":"^1.5.2","eslint-plugin-import":"^1.16.0","http-server":"^0.9.0","release-o-tron":"http://static.filestackapi.com/packages/release-o-tron/release-o-tron-1.3.6.tar.gz","rollup":"^0.41.6","rollup-plugin-babel":"^2.7.1"},"pre-commit":["lint"],"gitHead":"48ad9584cd0aef950d5597a7796246a45f63131a","description":"## Installation","_id":"filestack-loader@3.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"filestack-dev","email":"dev@filestack.com"},"dist":{"integrity":"sha512-59IvdhfzXTjcwQw00sP7JkyusipDqapHeLxdeI+lkiKzTaSgOPBqKY8CsEHr6+pKLvhZ8dZMQtpXEh0doIrdVQ==","shasum":"74268a80fba49ab830a8759288d45880d95dd6e0","tarball":"https://registry.npmjs.org/filestack-loader/-/filestack-loader-3.0.3.tgz","fileCount":6,"unpackedSize":12733,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAbS4q0bXZCDxD4et5YN9LUcdih/iu8VcYknRihi/o9wIgbdhP1lpthiYYNWZ7bSwpDutmNpMa/CcWiP/9QKmxswg="}]},"maintainers":[{"name":"filestack-dev","email":"dev@filestack.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filestack-loader_3.0.3_1522690058423_0.5695695892958201"},"_hasShrinkwrap":false},"3.0.4":{"name":"filestack-loader","version":"3.0.4","license":"SEE LICENSE IN LICENSE","main":"dist/loader.js","module":"dist/loader.esm.js","browser":"dist/loader.esm.js","files":["dist"],"scripts":{"build":"rollup -c","build-test":"node scripts/build_test.js","pretest":"npm run build && npm run build-test","test":"http-server ./test -o","lint":"eslint lib","release-start":"release-o-tron --start --with-build","release-finish":"release-o-tron --finish"},"dependencies":{},"devDependencies":{"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","eslint":"^3.5.0","eslint-config-airbnb-base":"^8.0.0","eslint-plugin-html":"^1.5.2","eslint-plugin-import":"^1.16.0","http-server":"^0.9.0","release-o-tron":"http://static.filestackapi.com/packages/release-o-tron/release-o-tron-1.3.6.tar.gz","rollup":"^0.41.6","rollup-plugin-babel":"^2.7.1"},"pre-commit":["lint"],"gitHead":"18336796b503905e1e1cfeaec0ef40a8cb4467c5","description":"## Installation","_id":"filestack-loader@3.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"filestack-dev","email":"dev@filestack.com"},"dist":{"integrity":"sha512-b6uOCWHd1gM0+5KBA1rA4qfEgTqyTr5umLM4bBWT4z98WUwxa6KzCiq+z0VnR4rN+NCx6kyZ/wLXjGcPU32TxQ==","shasum":"f387d14b4b85329f67361f314fa04b5ae41a57a0","tarball":"https://registry.npmjs.org/filestack-loader/-/filestack-loader-3.0.4.tgz","fileCount":8,"unpackedSize":22685,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2+BA+XJUcB/oVq8YU1T8E3eFTchY31jefbXD6rShYjgIhAJd24CPwsei++uMWJG8S3exZYal3afGz1oWYy0qGfWQA"}]},"maintainers":[{"name":"filestack-dev","email":"dev@filestack.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filestack-loader_3.0.4_1522779092191_0.14629490501484876"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-23T16:05:18.740Z","3.0.1":"2018-03-23T16:05:18.821Z","modified":"2022-05-02T10:01:55.901Z","3.0.2":"2018-03-23T16:08:47.637Z","3.0.3":"2018-04-02T17:27:38.496Z","3.0.4":"2018-04-03T18:11:32.300Z"},"maintainers":[{"name":"filestack-dev","email":"dev@filestack.com"}],"description":"## Installation","license":"SEE LICENSE IN LICENSE","readme":"# Loader\n\n## Installation\n\n```\nnpm install filestack-loader\n```\n\n## Usage\n\n### Loading JavaScript Modules\n\nIf you have two modules `a.js` and `b.js` and you want to load `b` into `a`...\n\n```js\n// file a.js\nimport loader from 'loader';\n\nloader.loadModule('url/to/b.js').then((b) => {\n  b.helloWorld();\n});\n```\n\n```js\n// file b.js\nimport loader from 'loader';\n\nconst api = {\n  helloWorld() {\n    console.log('Hello world!');\n  },\n};\n\n// Module need to \"tell\" the loader that it's loaded and ready.\nloader.registerReadyModule(api);\n```\n\n### Loading CSS\n\n```js\nimport loader from 'loader';\n\nloader.loadCss('url/to/style.css').then(() => {\n  console.log('Style loaded!');\n});\n```\n\n# Development\n\n## Setup\n\n```\nnpm install\n```\n\n## Testing\n\n### Unit\n\n```\nnpm test\n```\nThis command opens in the browser semi-manual tests. Those tests don't have watch, so you need to refire the command with each change.\n","readmeFilename":"README.md"}