Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
load-resource
Advanced tools
This package exposes a function named "load" which takes a URL or an array of URLs and returns a Promise will resolve after all resources finishes loading.
This package exposes a function named "load" which takes a URL or an array of URLs and returns a Promise will resolve after all resources finishes loading.
npm i
npm run prepublish
npm i -S load-resource
require('load-resource')
returns a function with the following signature: function(url[, opts = {}) => Promise
Any url that you would like to load. May be absolute or relative.
A map of attributes to set on the script
or link
node before appending it to the DOM. By default this is empty.
import loadResource from 'load-resource';
// Load a single library
loadResource.load('url').then(res => {console.log('url has finished loading')});
// Load multiple libraries
loadResource.load([
'url1',
'url2',
]).then(res => {console.log('all urls have finished loading')});
See LICENSE.txt
FAQs
This package exposes a function named "load" which takes a URL or an array of URLs and returns a Promise will resolve after all resources finishes loading.
The npm package load-resource receives a total of 66 weekly downloads. As such, load-resource popularity was classified as not popular.
We found that load-resource demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.