Socket
Socket
Sign inDemoInstall

unopinionate

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    unopinionate

Unopinionated front-end libraries


Version published
Weekly downloads
7
Maintainers
1
Install size
3.52 kB
Created
Weekly downloads
 

Readme

Source

unopinionate.js

Unopinionated front-end libraries

The goal of this project is to create a shim that can be used in lieu of explicit dependencies for common but competing front-end JavaScript libraries. For instance, many projects depend on a selector library such as jQuery or Zepto but bundling or requiring a specific dependency means that those using a competing dependency will either need to include both or resort to something that uses their existing stack.

Unopinionate looks for common libraries (e.g. jQuery, Zepto) that fill a specific roll (selector libraries). Instead of depending on the library explicitly, depend on unopionate.js to deliver whatever library the user chooses.

var $ = unopinionate.selector;

Unopinionate works with CommonJS and AMD as well:

//CommonJS
var $ = require('unopinionate').selector;

//AMD (RequireJS)
require([
    'unopinionate'
], function(unopinionate) {
    var $ = unopinionate.selector;
});

This was inspired by the way Backbone.js handles selector libraries.

Supported Libraries

  • selector

    • jQuery
    • Zepto
    • Ender
  • template

    • Mustache
    • Handlebars

More to come...pull requests welcome.

Keywords

FAQs

Last updated on 23 Feb 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc