# pakmanager

> A demo package manager using the pakman API.

Latest version **0.12.1** (published 2013-04-18) · 0 weekly downloads

## Install

```sh
npm install pakmanager
pnpm add pakmanager
yarn add pakmanager
bun add pakmanager
```

Provides the command `pakmanager`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.12.1 |
| Published | 2013-04-18 |
| First published | 2011-10-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | AJ ONeal |
| Maintainers | coolaj86 |

## Links

- npm: https://www.npmjs.com/package/pakmanager
- Repository: https://github.com/coolaj86/node-pakman
- npm.io page: https://npm.io/package/pakmanager

## Dependencies (2)

- [pakman](https://npm.io/package/pakman.md) >=0.11.5 <0.12.0
- [argparse](https://npm.io/package/argparse.md) >=0.1.5 <0.2.0

## Recent versions

- 0.12.1 (latest) — 2013-04-18
- 0.12.0 — 2013-03-15
- 0.11.8 — 2012-11-16
- 0.11.7 — 2012-10-18
- 0.11.6 — 2012-10-16
- 0.11.5 — 2012-10-15
- 0.11.4 — 2012-10-15
- 0.11.3 — 2012-10-03
- 0.8.8 — 2012-05-30
- 0.8.7 — 2012-05-30
- 0.8.6 — 2011-12-22
- 0.8.5 — 2011-11-11
- 0.8.4 — 2011-10-28
- 0.8.1 — 2011-10-25

## README

pakmanager
===

An example (and fully functional) package manager built on the [`pakman`](http://github.com/coolaj86/node-pakman) and `npm` APIs.

Installation
===

If you haven't already set your NPM author info, now you should:

    npm set init.author.name "Your Name"
    npm set init.author.email "you@example.com"
    npm set init.author.url "http://yourblog.com"

    npm adduser

And install pakmanager:

    npm install -g pakmanager

Usage
===

In short: run `pakmanager build` wherever `package.json` exists

Create your project

    PROJECT=~/Code/some-project
    mkdir -p ${PROJECT}/lib
    cd ${PROJECT}
    touch lib/index.js
    npm init

NOTE: Your code will be wrapped in a strict-mode closure - so don't use "The Bad Parts" TM such as using `this` to refer to the global object. See [jshint](http://jshint.com).

    (function () { "use strict";
      var module = { exports: {} };
      /*** your code pasted here ***/ 
      provide('providename', module);
    }());

Mark as private if need be by editing `package.json` and adding `"private": true,`

Test and build your module

    pakmanager deps
    pakmanager build
    # edit pakmanaged-test.js
    # open pakmanaged.html to see about any errors

And you might want to publish your module

    npm publish ./


CLI / API
===

    pakmanager deps       # list all dependencies
    pakmanager build      # builds package.json.browserDependencies and package.json.main

    rm -rf pakmanaged.js ./node_modules # clean old builds

Internal API
===

    #create(config)
    #init(cb, config)

    config.packageRoot

TODO
===

linting

jshint code and report errors

Add to API

    pakmanager init       # creates / updates package.json
    pakmanager install    # installs package.json.browserDependencies into ./node_modules
    pakmanager clean      # rm -rf ./node_modules
    pakmanager rebuild    # clean, build
    pakmanager add        # add module@ver to package.json.browserDependencies
    pakmanager set        # set module@ver in package.json.browserDependencies

---
_Source: https://npm.io/package/pakmanager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
