Giter Site home page Giter Site logo

cpm's Introduction

cpm

Package manager for the C programming language.

c package manager screenshot

Installation

$ npm install -g visionmedia/cpm

About

Basically the lazy-man's copy / paste, promoting smaller C utilities, also serving as a nice way to discover these sort of libraries, from my experience they are scattered all over the web and discovery is relatively poor. The wiki listing of packages acts as the "registry" and populates the cpm-search(1) results.

cpm(1) is not a package manager for an end-user experience, for example it currently has no concept of dependencies etc, you should use cpm(1) to fetch these files for you and check them into your repository, the end-user and contributors will not require cpm(1).

Usage


Usage: cpm [options] [command]

Commands:

  install <pkg>          install the given package(s)
  help [cmd]             display help for [cmd]

Options:

  -h, --help     output usage information
  -V, --version  output the version number

Examples

Install a few dependencies to ./deps:

$ cpm install visionmedia/ms.c visionmedia/commander.c

Install them to ./src instead:

$ cpm install visionmedia/ms.c visionmedia/commander.c -o src

Install some executables:

$ cpm install visionmedia/mon visionmedia/every visionmedia/watch

Once again with brace expansion, you do love brace expansion right? ;)

$ cpm install visionmedia/{mon,every,watch}

package.json

Example of a package.json explicitly listing the source:

{
  "name": "term",
  "version": "0.0.1",
  "repo": "visionmedia/term.c",
  "description": "Terminal ansi escape goodies",
  "keywords": ["terminal", "term", "tty", "ansi", "escape", "colors", "console"],
  "license": "MIT",
  "src": ["src/term.c", "src/term.h"]
}

Example of a package.json for an executable:

{
  "name": "mon",
  "version": "1.1.1",
  "repo": "visionmedia/mon",
  "description": "Simple process monitoring",
  "keywords": ["process", "monitoring", "monitor", "availability"],
  "license": "MIT",
  "install": "make install"
}

Example of a package.json using gyp:

{
  "name": "mon",
  "version": "1.1.1",
  "repo": "visionmedia/mon",
  "description": "Simple process monitoring",
  "keywords": ["process", "monitoring", "monitor", "availability"],
  "license": "MIT",
  "gyp": "myProject.gyp"
}

License

MIT

cpm's People

Contributors

tj avatar zectbynmo avatar

Watchers

James Cloos avatar  avatar

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.