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

ender-commonjs

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ender-commonjs

commonjs module support for ender

  • 1.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
6
Weekly downloads
 
Created
Source

Ender CommonJS

The core client library to Ender providing you with require, provide, and a Module class.

require(id)

var each = require('underscore').each
var select = require('sizzle')
each(select('h1'), function (el) {
  el.style.color = 'red'
})

require._modules

Includes the list of which modules are available for use in your Ender bundle

require._cache

Includes the list of modules that have been required() by the implementer.

provide (id, value)

provide('client/utils', {
  formatNumber: function (num) {
    return String(num).replace(/(\d)(?=(\d{3})+$)/g, '$1,')
  }
})

// access client/utils module
var format = require('client/utils').formatNumber

Module

  • supports multi-file modules, internal/relative requires, index requiring, requiring submodules, and CommonJS compatibility.

Keywords

FAQs

Package last updated on 13 Mar 2015

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