ipld-git

JavaScript Implementation of Git IPLD format

This module is no longer maintained
Last updated 6 years ago by vmx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install ipld-git 
SYNC missed versions from official npm registry.

⛔️ DEPRECATED: This module is no longer maintained. It can be used with multiformats by wrapping it with ipld-format-to-blockcodec

js-ipld-git

Travis CI Coverage Greenkeeper badge

JavaScript implementation of the IPLD spec.

Lead Maintainer

Volker Mische

Table of Contents

Install

npm

> npm install ipld-git

Use in Node.js

const IpldGit = require('ipld-git')

Use in a browser with browserify, webpack or any other bundler

The code published to npm that gets loaded on require is in fact a ES5 transpiled version with the right shims added. This means that you can require it and use with your favourite bundler without having to adjust asset management process.

var IpldGit = require('ipld-git')

Use in a browser Using a script tag

Loading this module through a script tag will make the IpldGit obj available in the global namespace.

<script src="https://unpkg.com/ipld-git/dist/index.min.js"></script>
<!-- OR -->
<script src="https://unpkg.com/ipld-git/dist/index.js"></script>

Usage

const IpldGit = require('ipld-git')
const zlib = require('zlib')

// `gitObject` is a Buffer containing a git object
inflatedObject = zlib.inflateSync(gitObject)
const dagNode = IpldGit.util.deserialize(inflatedObject)
console.log(dagNode)

Contribute

Feel free to join in. All welcome. Open an issue!

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to IPLD are subject to the IPFS Code of Conduct.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT

Current Tags

  • 0.6.6                                ...           latest (3 years ago)

17 Versions

  • 0.6.6                                ...           3 years ago
  • 0.6.5 [deprecated]           ...           3 years ago
  • 0.6.4 [deprecated]           ...           4 years ago
  • 0.6.1 [deprecated]           ...           4 years ago
  • 0.6.0 [deprecated]           ...           4 years ago
  • 0.5.3 [deprecated]           ...           4 years ago
  • 0.5.2 [deprecated]           ...           4 years ago
  • 0.5.1 [deprecated]           ...           5 years ago
  • 0.5.0 [deprecated]           ...           6 years ago
  • 0.4.0 [deprecated]           ...           6 years ago
  • 0.3.0 [deprecated]           ...           6 years ago
  • 0.2.3 [deprecated]           ...           6 years ago
  • 0.2.2 [deprecated]           ...           6 years ago
  • 0.2.1 [deprecated]           ...           6 years ago
  • 0.2.0 [deprecated]           ...           7 years ago
  • 0.1.1 [deprecated]           ...           7 years ago
  • 0.1.0 [deprecated]           ...           7 years ago
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (4)
Dependents (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE