⬆️ ⬇️

seedJS - CommonJS Package Manager

logo

SEED.JS



The guys from SproutCore introduced the CommonJS standard package manager (currently supports node.js as a target system).



Working with him is like working with rubygems. Instead of working with node, you need to use seed, which prepares the environment for working with packages (similar to require 'rubygems').



Now using any package is as simple as:

seed install markdown



And further

#!/usr/bin/env seed



var markdown = require('markdown');

markdown.html('__Hello World__');



Creating your own package and publishing it in the repository is also very simple.

')

Create a file ./hello-world/package.json of the form:

{

"name": "hello-world",

"version": "0.1.0",



"dependencies": {

"markdown": "1.0.0"

}

}



And perform

seed push ./hello-world



The project has just begun its development, your help in its development is welcome !



PS: there is also an alternative package manager project for node.JS - kiwi .

Source: https://habr.com/ru/post/91475/



All Articles