All Projects → jonschlinkert → Project Name

jonschlinkert / Project Name

Licence: mit
Get the name of a project from package.json, git config, or basename of the current working directory.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Project Name

Generate
A new command line tool and developer framework for scaffolding out GitHub projects. Generate offers the robustness and configurability of Yeoman, the expressiveness and simplicity of Slush, and more powerful flow control and composability than either.
Stars: ✭ 238 (+2875%)
Mutual labels:  generate, project, generator, scaffold, yeoman, scaffolding
Generate Gh Repo
Generate generator to create a new repository on GitHub.
Stars: ✭ 11 (+37.5%)
Mutual labels:  generate, project, generator, scaffold, scaffolding
Pollinate
Template your base files and generate new projects from Git(Hub).
Stars: ✭ 213 (+2562.5%)
Mutual labels:  project, generator, yeoman, scaffolding
Sao
⚔ Futuristic scaffolding tool
Stars: ✭ 966 (+11975%)
Mutual labels:  generator, yeoman, scaffolding
Generator Sails Rest Api
Yeoman generator for scaffolding Sails REST API with predefined features
Stars: ✭ 336 (+4100%)
Mutual labels:  scaffold, yeoman, scaffolding
Larawiz
Larawiz is a easy project scaffolder for Laravel
Stars: ✭ 28 (+250%)
Mutual labels:  generator, scaffold, scaffolding
Generator Modular Angular
A truly modular yeoman generator for AngularJS all device apps.
Stars: ✭ 23 (+187.5%)
Mutual labels:  generator, yeoman, scaffolding
Yo
CLI tool for running Yeoman generators
Stars: ✭ 3,421 (+42662.5%)
Mutual labels:  generator, yeoman, scaffolding
Microgen
♻️ micro-generator for individual files, easy like sunday morning 🌅
Stars: ✭ 85 (+962.5%)
Mutual labels:  generator, yeoman, scaffolding
Generator Standard Readme
Scaffold out a Standard Readme
Stars: ✭ 150 (+1775%)
Mutual labels:  generator, scaffold, yeoman
Generator
Rails-inspired generator system that provides scaffolding for your apps
Stars: ✭ 1,000 (+12400%)
Mutual labels:  generator, scaffold, yeoman
Prompt Checkbox
This repository has been archived, use Enquirer instead.
Stars: ✭ 21 (+162.5%)
Mutual labels:  generate, generator, yeoman
mosaic-node-generator
Generate mosaic images in Node.
Stars: ✭ 25 (+212.5%)
Mutual labels:  generator, generate
reactcci
React create component interactive CLI
Stars: ✭ 49 (+512.5%)
Mutual labels:  generator, scaffolding
justgo
Skeleton for jump-starting a Go-powered microservice project with Docker and Go best-practices + easy code hot-reloading (for dev environments)!
Stars: ✭ 29 (+262.5%)
Mutual labels:  generator, scaffolding
tfstage
TFStage: TensorFlow Project Scaffolding
Stars: ✭ 64 (+700%)
Mutual labels:  scaffold, scaffolding
nest-js-boilerplate
Nest.js boilerplate
Stars: ✭ 79 (+887.5%)
Mutual labels:  generator, yeoman
Github Activity Generator
A script that helps generate a rich GitHub Contribution Graph for your account
Stars: ✭ 259 (+3137.5%)
Mutual labels:  generate, generator
generator-veams
Scaffold modern frontend web apps or web pages with a static site generator (Assemble or Mangony), Grunt and/or Gulp, Sass and Bower. Use modern frameworks like Bourbon, Bootstrap or Foundation and structure your JavaScript with ES Harmony support.
Stars: ✭ 45 (+462.5%)
Mutual labels:  yeoman, scaffold
Generator Plugin Wp
Yeoman WordPress Plugin Generator
Stars: ✭ 270 (+3275%)
Mutual labels:  generator, yeoman

project-name NPM version NPM monthly downloads NPM total downloads Linux Build Status

Get the name of a project, from package.json, git config, or basename of the current working directory.

Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.

Install

Install with npm:

$ npm install --save project-name

Install Type Definitions

$ npm install --save @types/project-name

Usage

Requires Node.js >=8.

Project name

The project name is resolved in this order:

  1. Check for package.json, if it exists name is returned
  2. Check for git repository, if it exists return the name parsed from the remote origin URL
  3. Otherwise, use path.basename(process.cwd())
const name = require('project-name');
console.log(name());
// or
console.log(name('some/file/path'));

About

Contributing

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

Running Tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test
Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Related projects

You might also be interested in these projects:

Author

Jon Schlinkert

License

Copyright © 2018, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.8.0, on December 10, 2018.

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].