Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jspm/core

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspm/core

This package contains the core libraries used in jspm 2.

  • 2.1.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
416K
decreased by-5.06%
Maintainers
0
Weekly downloads
 
Created

What is @jspm/core?

@jspm/core is a modern JavaScript package manager that allows you to import npm packages directly in the browser or in Node.js without needing a bundler. It supports ES modules and provides a CDN for quick and easy package loading.

What are @jspm/core's main functionalities?

Importing npm packages in the browser

This feature allows you to import npm packages directly in the browser using ES module syntax. The example demonstrates importing the lodash library and using its random function.

import { lodash } from 'https://jspm.dev/lodash';
console.log(lodash.random(1, 100));

Importing npm packages in Node.js

This feature allows you to import npm packages in a Node.js environment using ES module syntax. The example shows how to import and use the lodash library in Node.js.

import { lodash } from '@jspm/core/nodelibs/lodash';
console.log(lodash.random(1, 100));

Using the JSPM CDN

JSPM provides a CDN for quick and easy package loading. The example demonstrates importing the moment library from the JSPM CDN and using it to format the current date and time.

import { moment } from 'https://jspm.dev/moment';
console.log(moment().format('MMMM Do YYYY, h:mm:ss a'));

Other packages similar to @jspm/core

FAQs

Package last updated on 15 Oct 2024

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