Giter Club home page Giter Club logo

ied's Introduction

experimental Build Status

ied (WIP)

An alternative package manager for Node.

  • blazingly fast due to completely concurrent installation procedure and constant (micro) optimizations
  • correctly resolves (circular) dependencies
  • supports semver
  • correctly handles devDependencies
  • produces a flat node_modules directory
  • verifies the integrity of downloaded packages
  • fast caching
  • interfaces with the npm registry
  • has no global namespace for packages
  • allows you to require multiple versions of the same package
  • visually indicates progress via progress bar
  • respects your global configuration
  • can run arbitrary scripts defined in your package.json (e.g. test)
  • supports the usual install flags, such as --save, --save-dev
  • allows you to install arbitrary groups of packages, e.g. (ied install --only otherDeps, ied install --only prod)
  • useful utilities, such as ping, config, ls
  • allows you to easily start a new sub-shell that allows you to use the scripts exposed by your dependencies without installing them globally via ied sh
  • supports private registries
  • makes it impossible for you to accidentally require sub-dependencies, even though node_modules is completely flat
  • completely atomic: node_modules is guaranteed to be consistent

Why?

The original idea was to implement npm's pre-v3 install algorithm in as few lines as possible. This goal was achieved in c4ba56f.

Currently the main goal of this project is to provide a more performant alternative to npm. I like npm, but it's just too slow.

Installation

The easiest way to install ied is using npm:

  npm i -g ied

Alternatively you can also "bootstrap" ied. After an initial installation via npm, ied will install its own dependencies:

  git clone https://github.com/alexanderGugel/ied ied && cd $_ && make install

Usage

  ied is a package manager for Node.

  Usage:

    ied command [arguments]

  The commands are:

    install     fetch packages and dependencies
    run         run a package.json script
    test        run the test-suite of the current package
    shell       enter a sub-shell with augmented PATH
    ping        check if the registry is up
    ls          print the dependency graph
    expose      make a sub-dependency `require`able
    config      print the used config
    init        initialize a new package

  Flags:
    -h, --help      show usage information
    -v, --version   print the current version
    -S, --save      update package.json dependencies
    -D, --save-dev  update package.json devDependencies
    -o, --only      install a subset of the dependencies
    -r, --registry  use a custom registry (default: http://registry.npmjs.org/)

  Example:
    ied install <pkg>
    ied install <pkg>@<version>
    ied install <pkg>@<version range>

    Can specify one or more: ied install semver@^5.0.1 tape
    If no argument is supplied, installs dependencies from package.json.
    Sub-commands can also be called via their shorthand aliases.

  README:  https://github.com/alexanderGugel/ied
  ISSUES:  https://github.com/alexanderGugel/ied/issues

Credits

Some ideas and (upcoming) features of ied are heavily inspired by Nix, a purely functional package manager.

FAQ

  • What does ied stand for?

    Nothing in particular. It's just easy to type and mpm (the original name) was already taken.

License

Licensed under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.