New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scriptjs

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scriptjs

Asyncronous JavaScript loader and dependency manager

  • 2.5.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
418K
decreased by-6.45%
Maintainers
2
Weekly downloads
 
Created

What is scriptjs?

scriptjs is a JavaScript library that allows you to asynchronously load JavaScript files. It provides a simple and efficient way to manage script dependencies and ensure that scripts are loaded in the correct order.

What are scriptjs's main functionalities?

Asynchronous Script Loading

This feature allows you to load external JavaScript files asynchronously. The callback function is executed once the script is fully loaded.

const $script = require('scriptjs');
$script('https://example.com/some-script.js', function() {
  console.log('Script loaded!');
});

Loading Multiple Scripts

You can load multiple scripts at once and execute a callback function when all scripts are loaded.

const $script = require('scriptjs');
$script(['https://example.com/script1.js', 'https://example.com/script2.js'], function() {
  console.log('Both scripts loaded!');
});

Named Bundles

This feature allows you to name script bundles and execute a callback when the entire bundle is ready.

const $script = require('scriptjs');
$script('https://example.com/some-script.js', 'bundle1');
$script.ready('bundle1', function() {
  console.log('Bundle1 is ready!');
});

Other packages similar to scriptjs

Keywords

FAQs

Package last updated on 01 Oct 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc