{"id":19224274,"url":"https://github.com/aprowe/paper-loader","last_synced_at":"2025-04-20T23:32:00.257Z","repository":{"id":57318697,"uuid":"76707918","full_name":"aprowe/paper-loader","owner":"aprowe","description":"PaperJs Loader for Webpack","archived":false,"fork":false,"pushed_at":"2016-12-20T02:11:48.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T00:18:51.207Z","etag":null,"topics":["loader","paper-loader","paperjs","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aprowe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-17T06:25:51.000Z","updated_at":"2018-05-26T06:30:16.000Z","dependencies_parsed_at":"2022-08-25T22:42:13.508Z","dependency_job_id":null,"html_url":"https://github.com/aprowe/paper-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprowe%2Fpaper-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprowe%2Fpaper-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprowe%2Fpaper-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprowe%2Fpaper-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aprowe","download_url":"https://codeload.github.com/aprowe/paper-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249977433,"owners_count":21354859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["loader","paper-loader","paperjs","webpack"],"created_at":"2024-11-09T15:11:10.305Z","updated_at":"2025-04-20T23:31:59.962Z","avatar_url":"https://github.com/aprowe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [PaperJS](http://paperjs.org) loader for [webpack](http://webpack.github.io/)\n\n## Install\n\n`npm install paper-loader paper --save-dev`\n\nThe paper-loader requires [paper](http://paperjs.org) and [webpack](https://github.com/webpack/webpack)\nas a [`peerDependency`](https://docs.npmjs.com/files/package.json#peerdependencies). Thus you are able to specify the required versions accurately.\n\n---\n\n## Usage\n\n[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)\n\n``` javascript\nvar executePaperScript = require('file.paper.js');\n\n// Wait for canvas to be created\nwindow.onload = function () {\n  // Call the module to create a paperjs scope and execute the code\n  var scope = executePaperScript('myCanvasID');\n}\n```\n\nThe module returns a function that can be called to create a PaperJS Scope.\nIt takes one parameter that sets up the view, and returns the scope created.\n\n\u003c!-- See [PaperScope] and [PaperScope.setup]; --\u003e\n\n### Apply via webpack config\n\n\n``` javascript\nmodule.exports = {\n  ...\n  module: {\n    loaders: [\n      {\n        test: /\\.paper.js$/,\n        loader: \"paper-loader\"\n      }\n    ]\n  }\n};\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faprowe%2Fpaper-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faprowe%2Fpaper-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faprowe%2Fpaper-loader/lists"}