🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

beck

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beck

An ES6 Module Loader pipeline toolkit and shim.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

beck.js

This is a work in progress

beck.js is a toolkit for building ES6 Module Loader pipelines as well as an ES6 Module Loader shim for legacy environments.

The shim deviates from the spec in various ways. It does this when the spec seems to do strange things or makes it really difficult to do common things -- things we've been doing with javascript modules since 2007.

This isn't ready for use, yet.

This project probably isn't ready for you to try out, yet. It only understands CommonJS modules that have not been concatenated using some sort of transport format (browsers) and has onlly been rudimentally tested in modern browsers, node.js, and RingoJS.

Stay tuned for further updates.

Loader behavior

  • Sense if environment has an ES6 loader already
    • If not, stub one asap
  • Await first require/request or config() call
    • If config()
      • Ensure amd, cjs, or es6 shims are properly installed
      • If main, loader.load(main)
    • If require() or data-beck-run
      • If no config has been set for this module, sniff for package.json at every folder in path to module, starting at deepest and ending at document's folder (also: bower.json and beck.json)
      • Ensure amd, cjs, or es6 shims are properly installed
      • System.load(module)
  • Config could also be supplied in an HTML data-* attr

Open questions

  • How does beck wait for first require/request or config() call in node/ringo?
    • ENV var?
    • System.load/import

Keywords

beck

FAQs

Package last updated on 09 Jul 2013

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