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

backbone-1.1.x

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

backbone-1.1.x

A package that exports `backbone@1.1.x`, to allow including multiple versions of Backbone in an app via NPM.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

backbone-1.1.x

A package that exports backbone@1.1.x, to allow including multiple versions of Backbone in an app via NPM.

Why? Isn't this a terrible anti-pattern?

Yep! It sure is. But, NPM doesn't by default allow including multiple versions of Backbone in the same project, for example, 0.9.10 and 1.1.2. This is a terrible hack that makes this possible, by allowing this in a Node program or Browserify bundle. Let's say your package.json's dependencies field contains this:

"backbone": "0.9.10",
"backbone-1.1.x": "0.1.0",

Now, in the part of your app that needs backbone@0.9.10:

var Backbone = require('backbone');

And in the part of your app that needs backbone@1.1.2:

var Backbone = require('backbone-1.1.x');

Keywords

FAQs

Package last updated on 16 Oct 2014

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