{"id":21864281,"url":"https://github.com/lightsing/flask-npm","last_synced_at":"2026-04-15T13:31:14.762Z","repository":{"id":137543100,"uuid":"140125955","full_name":"lightsing/Flask-NPM","owner":"lightsing","description":"embrace npm modules with flask","archived":false,"fork":false,"pushed_at":"2018-07-08T01:21:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T20:47:36.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightsing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-08T00:21:42.000Z","updated_at":"2019-02-02T00:45:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"1fad63cb-c478-42c2-99d5-0de89d5d4d9f","html_url":"https://github.com/lightsing/Flask-NPM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lightsing/Flask-NPM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2FFlask-NPM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2FFlask-NPM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2FFlask-NPM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2FFlask-NPM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightsing","download_url":"https://codeload.github.com/lightsing/Flask-NPM/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2FFlask-NPM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-28T04:08:25.031Z","updated_at":"2026-04-15T13:31:14.745Z","avatar_url":"https://github.com/lightsing.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flask-NPM\n=========\nFlask-NPM is a Flask extension which makes it easy to\nserve static files from node_modules\n\n## Installation ##\n\n### PyPI ###\n\nFlask-NPM is available on PyPI! You can install it with pip.\n\n```sh\npip install Flask-NPM\n```\n\n### Manual ###\n\nIf you want to do it the hard way you can clone the repository and\ninstall Flask-NPM in a virtualenv. \n\n1. Clone it `git clone https://github.com/lightsing/Flask-NPM.git`\n2. Enter it `cd Flask-NPM`\n3. Create a virtualenv and enter it (Optional) `virtualenv venv \u0026\u0026 source venv/bin/activate`\n4. Install it `python setup.py install`\n\n## Instructions ##\n\nAfter Flask-NPM is installed you will be able to import the `flask.ext.NPM`\npackages. There is only one thing you care about inside the package\nwhich is the `NPM` class.\n\n```python\nfrom flask.ext.NPM import NPM\n```\n\nThere are two ways to use the `NPM` class.\n\n1. Add the application object at construction time\n\n```python\napp = Flask(__name__)\nNPM(app)\n```\n\n2. Or initialize the application with `NPM.init_app`\n\n```python\nNPM = NPM()\napp = Flask(__name__)\nNPM.init_app(app)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsing%2Fflask-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightsing%2Fflask-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsing%2Fflask-npm/lists"}