All Projects → jonschlinkert → git-repo-name

jonschlinkert / git-repo-name

Licence: MIT License
Get the repository name from the git remote origin URL

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to git-repo-name

remote-origin-url
Extract the git remote origin URL from your local git repository.
Stars: ✭ 15 (-28.57%)
Mutual labels:  url, remote, origin
repogen
Easy-to-use signed APT repository generator with a web-based package browser.
Stars: ✭ 34 (+61.9%)
Mutual labels:  repository, repo
URL-Magnet-Cloud-Uploader-Heroku
Aria 2 Rclone Remote URL /magnet Clouds upload via HEROKU
Stars: ✭ 99 (+371.43%)
Mutual labels:  url, remote
wumpfetch
🚀🔗 A modern, lightweight, fast and easy to use Node.js HTTP client
Stars: ✭ 20 (-4.76%)
Mutual labels:  url, get
github-base
Simple, opinionated node.js interface for creating basic apps with the GitHub API.
Stars: ✭ 58 (+176.19%)
Mutual labels:  url, get
Gdrivedownloader
Just enter the direct URL of the file and it will upload it to Google Drive and print download link of it.
Stars: ✭ 60 (+185.71%)
Mutual labels:  url, remote
Git Repo Watcher
A simple bash script to watch a git repository and pull upstream changes if needed.
Stars: ✭ 73 (+247.62%)
Mutual labels:  repository, remote
Vscode Remote Workspace
Multi protocol support for handling remote files like local ones in Visual Studio Code.
Stars: ✭ 197 (+838.1%)
Mutual labels:  url, remote
gists
Methods for working with the GitHub Gist API. Node.js/JavaScript
Stars: ✭ 96 (+357.14%)
Mutual labels:  get, jonschlinkert
github-interact-cli
🎩 Interact with GItHub right inside your terminal
Stars: ✭ 43 (+104.76%)
Mutual labels:  repository, repo
tainted
Tool to determine which Go packages need to be rebuilt in a monorepo
Stars: ✭ 53 (+152.38%)
Mutual labels:  repository, repo
quill-magic-url
Automatically convert URLs to links in Quill
Stars: ✭ 86 (+309.52%)
Mutual labels:  url
micell
A collection of functions for front-end development
Stars: ✭ 16 (-23.81%)
Mutual labels:  url
URLQueryItemEncoder
A Swift Encoder for encoding any Encodable value into an array of URLQueryItem.
Stars: ✭ 60 (+185.71%)
Mutual labels:  url
Re-skinning url splitter
Divide / Split your WordPress Blog visitors into 4 links by using Re-skinning URL splitter
Stars: ✭ 73 (+247.62%)
Mutual labels:  url
Mi
MI - A PS4 Remote Tool.
Stars: ✭ 23 (+9.52%)
Mutual labels:  remote
punic
Punic is a remote cache CLI built for Carthage and Apple .xcframework
Stars: ✭ 25 (+19.05%)
Mutual labels:  remote
teuton
Infrastructure test, mainly useful for sysadmin teachers and making contests
Stars: ✭ 22 (+4.76%)
Mutual labels:  remote
pi-encrypted-boot-ssh
🔑 Raspberry Pi Encrypted Boot with Remote SSH
Stars: ✭ 96 (+357.14%)
Mutual labels:  remote
kirby3-instagram
Kirby 3 Plugin to call Instagram (or any other) API Endpoints
Stars: ✭ 20 (-4.76%)
Mutual labels:  get

git-repo-name NPM version NPM downloads Build Status

Get the repository name from the git remote origin URL.

Install

Install with npm:

$ npm install git-repo-name --save

Usage

var repoName = require('git-repo-name');

By default process.cwd() is used, but you can alternatively specify a different directory as the first argument.

async

repoName(function(err, name) {
  //=> 'git-repo-name'
});

sync

repoName.sync();
//=> 'git-repo-name'

cwd

Optionally specify the directory to use.

async

repoName('foo', function(err, name) {
  //=> 'repo-foo-name'
});

sync

repoName.sync('foo');
//=> 'repo-foo-name'

Related projects

You might also be interested in these projects:

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

Generate readme and API documentation with verb:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb, v0.9.0, on May 03, 2016.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].