Socket
Book a DemoInstallSign in
Socket

git-object-tag

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-object-tag

parse and create git tag objects

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

git-object-tag

git tag objects as javascript objects.

tag objects are immutable once created.

var Buffer = require('buffer').Buffer
  , tag = require('git-object-tag')

var b = tag.create(new Buffer(...))

b = tag.read(<some git buffer>)

API

tag.read() -> Tag

read a tag from some git buffer data.

tag.create(tagger, object, type, tag, message, attrs) -> Tag

create a tag from some source data.

all fields (save for message) may be arrays.

Tag#tag() -> string

Tag#type() -> "commit" | "tag" | "blob" | "tree"

Tag#tagger() -> string

Tag#message() -> string

Tag#attr(attr) -> string | undefined

License

MIT

Keywords

git

FAQs

Package last updated on 18 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts