7.0.2 • Published 9 years ago

neuropil v7.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

Neuropil

NPM version Build Status

Neuropil is a synaptically dense region in the nervous system composed of mostly unmyelinated axons, dendrites and glial cell processes.

Neuropil is the cortex registry client.

Usage

var neuropil = require('neuropil')({
	username: 'foo',
	password: 'blah',
	host: 'http://registry.npm.lc',
	port: 80
});

Method

neuropil.adduser(options, callback)

options
  • username String

  • password String

  • email String

callback function(err, res, json)

PAY ATTENSION!

err is the error message or Error instance caused by network problems and try-catched programming exceptions.

If we encountered !err === true, it was not always ok, logic errors, such as authentication refuse, validation errors will be responsed as json.error.

neuropil.exists(options, callback)

options
  • name String
  • version String
callback function(err, res, json)

neuropil.attachment(options, callback)

options
  • tar path the pathname of the tarball file
  • name String package name
  • filename String the name of the attachment after uploaded to the server
  • rev String couchdb rev

neuropil.publish(options, callback)

options
  • tar path
  • pkg Object the parsed object of package.json
  • force Boolean= if true, neuropil will override existing version. default to false

neuropil.unpublish(options, callback)

options
  • name String
  • version String semantic version of the module, or '*' as all versions
  • maintain_doc Boolean= if true, neuropil will maintain package document even if there's no versions in it after removing specific versions. default to false

neuropil.install(options, callback)

options
  • dependency_key String the key of dependencies in package.json, such as 'cortex.dependencies'
  • dir path the directory which the tarballs to be downloaded and extracted into
  • modules Array.<String> ['a@0.0.1', b@0.0.2]
callback function(err, data)

The detail structure of data, see 'lib/command/install.js'

7.0.2

9 years ago

7.0.1

9 years ago

7.0.0

9 years ago

6.0.1

10 years ago

6.0.0

10 years ago

5.0.3

10 years ago

4.2.2

10 years ago

5.0.2

10 years ago

5.0.1

10 years ago

5.0.0

10 years ago

4.2.1

10 years ago

4.2.0

10 years ago

4.1.6

10 years ago

4.1.5

10 years ago

4.1.4

10 years ago

4.1.3

10 years ago

4.1.2

10 years ago

4.1.1

10 years ago

4.1.0

10 years ago

4.0.3

10 years ago

4.0.1

10 years ago

3.1.8

10 years ago

3.1.7

10 years ago

3.1.6

10 years ago

3.1.5

10 years ago

3.1.4

10 years ago

3.1.3

10 years ago

3.1.2

10 years ago

3.1.1

10 years ago

3.1.0

10 years ago

3.0.5

10 years ago

3.0.4

10 years ago

3.0.3

10 years ago

3.0.2

10 years ago

3.0.1

10 years ago

2.8.1

10 years ago

3.0.0

10 years ago

2.8.0

10 years ago

2.7.3

10 years ago

2.7.2

10 years ago

2.7.1

10 years ago

2.7.0

10 years ago

2.6.0

10 years ago

2.5.2

10 years ago

2.5.1

10 years ago

2.4.4

10 years ago

2.4.3

10 years ago

2.4.2

10 years ago

2.4.1

10 years ago

2.3.2

11 years ago

2.3.1

11 years ago

2.2.4

11 years ago

2.2.3

11 years ago

2.2.2

11 years ago

2.2.1

11 years ago

1.4.1

11 years ago

1.3.1

11 years ago

1.2.2

11 years ago

0.4.1

11 years ago

0.3.4

11 years ago

0.3.3

11 years ago

0.3.2

11 years ago

0.2.13

11 years ago

0.2.12

11 years ago

0.2.11

11 years ago

0.1.10

11 years ago

0.1.9

11 years ago