{"_id":"filestack-loader","_rev":"398340","name":"filestack-loader","description":"## Installation","dist-tags":{"latest":"3.0.4"},"maintainers":[{"name":"filestack-dev","email":"dev@filestack.com"}],"time":{"modified":"2021-08-04T04:22:03.000Z","created":"2018-03-23T16:05:18.821Z","3.0.4":"2018-04-03T18:11:32.300Z","3.0.3":"2018-04-02T17:27:38.496Z","3.0.2":"2018-03-23T16:08:47.637Z","3.0.1":"2018-03-23T16:05:18.821Z"},"users":{},"versions":{"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":{"shasum":"f387d14b4b85329f67361f314fa04b5ae41a57a0","size":4770,"noattachment":false,"key":"/filestack-loader/-/filestack-loader-3.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/filestack-loader/download/filestack-loader-3.0.4.tgz"},"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,"publish_time":1522779092300,"_cnpm_publish_time":1522779092300},"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":{"shasum":"74268a80fba49ab830a8759288d45880d95dd6e0","size":4472,"noattachment":false,"key":"/filestack-loader/-/filestack-loader-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/filestack-loader/download/filestack-loader-3.0.3.tgz"},"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,"publish_time":1522690058496,"_cnpm_publish_time":1522690058496},"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":{"shasum":"0e8e8e002d51cf66c6b393cb0303d1eb79b4683b","size":4532,"noattachment":false,"key":"/filestack-loader/-/filestack-loader-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/filestack-loader/download/filestack-loader-3.0.2.tgz"},"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,"publish_time":1521821327637,"_cnpm_publish_time":1521821327637},"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":{"shasum":"42b3708e81b86f09e2ff9e0090ecb7709d548642","size":5138,"noattachment":false,"key":"/filestack-loader/-/filestack-loader-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/filestack-loader/download/filestack-loader-3.0.1.tgz"},"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,"publish_time":1521821118821,"_cnpm_publish_time":1521821118821}},"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","_attachments":{},"license":"SEE LICENSE IN LICENSE"}