New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@outseta/attributes

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@outseta/attributes

Modular attribute-based JavaScript library for enhanced web functionality

latest
npmnpm
Version
1.3.0
Version published
Maintainers
3
Created
Source

Attributes Library

A modular JavaScript library that loads functionality based on HTML attributes, similar to Finsweet's approach. Modules are loaded dynamically only when requested, keeping bundle sizes minimal.

Usage

Include the library in your HTML and specify which modules you want to use:

<script async type="module" src="https://cdn.jsdelivr.net/npm/@outseta/attributes@latest/dist/core.js" 
  o-course
></script>

How It Works

The library uses a modular loading system:

  • Core library (core.js) is lightweight and loads first
  • Modules are loaded dynamically only when requested via attributes
  • No bundling - each module is a separate file for optimal caching
  • On-demand loading - only the modules you need are downloaded

Available Modules

  • o-course - Course management with lesson completion tracking, video auto-completion, and progress indicators
  • o-list - Dynamic list filtering and display based on user data

Building

npm install
npm run build

The built files will be in dist/:

  • core.js - Main library file
  • modules/ - Individual module files

Development

npm run dev      # Start development server with watch mode
npm run lint     # Run ESLint
npm run format   # Run Prettier

Adding New Modules

  • Create a new file in src/modules/
  • Use the Attributes.register() function:
Attributes.register('module-name', function() {
  // Your module code here
});
  • Rebuild with npm run build

Dependencies

  • Outseta: Required for user management
  • Modern browsers: ES6+ support required

License

MIT

Keywords

attributes

FAQs

Package last updated on 10 Dec 2025

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