{"_id":"project-name","_rev":"57237","name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:17:26.000Z","created":"2015-10-20T19:31:31.892Z","1.0.0":"2018-12-10T15:33:14.029Z","0.2.6":"2016-07-13T10:51:48.810Z","0.2.5":"2016-05-12T15:11:14.645Z","0.2.4":"2016-01-10T04:31:26.111Z","0.2.3":"2015-11-28T03:55:00.871Z","0.2.2":"2015-11-28T03:46:08.561Z","0.2.1":"2015-11-04T22:20:31.467Z","0.2.0":"2015-10-20T19:31:31.892Z"},"users":{"zuojiang":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"versions":{"1.0.0":{"name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/project-name","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"mocha"},"dependencies":{"git-repo-name":"^1.0.1"},"devDependencies":{"gulp-format-md":"^2.0.0","mocha":"^5.2.0"},"keywords":["app","detect","dir","directory","dirname","match","name","project","resolve","root"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-repo-name","git-user-email","git-user-name","git-username"]},"lint":{"reflinks":true}},"gitHead":"8962a718d9dda107691b3d608d5de3d1ae621aec","_id":"project-name@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.4.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"0e6c9cd5c69fa2185b62e8957afd2e2e8c6302ba","size":2799,"noattachment":false,"key":"/project-name/-/project-name-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-name/download/project-name-1.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-name_1.0.0_1544455993877_0.571406825238534"},"_hasShrinkwrap":false,"publish_time":1544455994029,"_cnpm_publish_time":1544455994029},"0.2.6":{"name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","version":"0.2.6","homepage":"https://github.com/jonschlinkert/project-name","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT","files":["cli.js","index.js","LICENSE","README.md"],"main":"index.js","bin":{"project-name":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"find-pkg":"^0.1.2","git-repo-name":"^0.6.0","minimist":"^1.2.0"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":["app","detect","dir","directory","dirname","match","name","project","resolve","root"],"verb":{"related":{"list":["git-repo-name","git-user-email","git-user-name","git-username"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator"]},"gitHead":"18a40a98491fb57dfb84eed21a2f702efc585bc6","_id":"project-name@0.2.6","_shasum":"3e4f781fe1ee94b0786a9bae53506376c379af69","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3e4f781fe1ee94b0786a9bae53506376c379af69","size":3045,"noattachment":false,"key":"/project-name/-/project-name-0.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-name/download/project-name-0.2.6.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/project-name-0.2.6.tgz_1468407106896_0.14924167236313224"},"directories":{},"publish_time":1468407108810,"_cnpm_publish_time":1468407108810,"_hasShrinkwrap":false},"0.2.5":{"name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","version":"0.2.5","homepage":"https://github.com/jonschlinkert/project-name","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT","files":["cli.js","index.js"],"main":"index.js","preferGlobal":true,"bin":{"project-name":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"find-pkg":"^0.1.1","git-repo-name":"^0.6.0","minimist":"^1.2.0"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"*"},"keywords":["app","detect","dir","directory","dirname","match","name","project","resolve","root"],"verb":{"related":{"list":["git-repo-name","git-user-email","git-user-name","git-username"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb"]},"gitHead":"03df71f274dff56ae3d84e47012736e0d40e7ab5","_id":"project-name@0.2.5","_shasum":"6582667a9baa3d0fd76f93e4db8ba90df9523047","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6582667a9baa3d0fd76f93e4db8ba90df9523047","size":2848,"noattachment":false,"key":"/project-name/-/project-name-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-name/download/project-name-0.2.5.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/project-name-0.2.5.tgz_1463065872156_0.37128778477199376"},"directories":{},"publish_time":1463065874645,"_cnpm_publish_time":1463065874645,"_hasShrinkwrap":false},"0.2.4":{"name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","version":"0.2.4","homepage":"https://github.com/jonschlinkert/project-name","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"preferGlobal":true,"dependencies":{"find-pkg":"^0.1.1","git-repo-name":"^0.5.1","minimist":"^1.2.0","try-open":"^0.1.0"},"devDependencies":{"mocha":"*"},"keywords":["app","detect","dir","directory","dirname","match","name","project","resolve","root"],"verb":{"related":{"list":["git-user-email","git-user-name","git-username","git-repo-name"]}},"gitHead":"70b9e9ef0dc7967bf8e6a738759d750b794ef25a","_id":"project-name@0.2.4","_shasum":"15283d13af942352e901859433977af8f41ba95e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"15283d13af942352e901859433977af8f41ba95e","size":2492,"noattachment":false,"key":"/project-name/-/project-name-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-name/download/project-name-0.2.4.tgz"},"directories":{},"publish_time":1452400286111,"_cnpm_publish_time":1452400286111,"_hasShrinkwrap":false},"0.2.3":{"name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","version":"0.2.3","homepage":"https://github.com/jonschlinkert/project-name","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"preferGlobal":true,"dependencies":{"find-pkg":"^0.1.0","git-repo-name":"^0.5.1","lazy-cache":"^0.2.4"},"devDependencies":{"mocha":"*"},"keywords":["app","detect","dir","directory","dirname","match","name","project","resolve","root"],"verb":{"related":{"list":["git-user-email","git-user-name","git-username","git-repo-name"]}},"gitHead":"9fc9726fa3e7ec785e0055cff939390cd714fce8","_id":"project-name@0.2.3","_shasum":"cfc5f59cdfe42bfc2ecb00dda0f6f8b59752ab5d","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"cfc5f59cdfe42bfc2ecb00dda0f6f8b59752ab5d","size":2802,"noattachment":false,"key":"/project-name/-/project-name-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-name/download/project-name-0.2.3.tgz"},"directories":{},"publish_time":1448682900871,"_cnpm_publish_time":1448682900871,"_hasShrinkwrap":false},"0.2.2":{"name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/project-name","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"preferGlobal":true,"dependencies":{"find-pkg":"^0.1.0","git-repo-name":"^0.5.1","lazy-cache":"^0.2.4"},"devDependencies":{"mocha":"*"},"keywords":["app","detect","dir","directory","dirname","match","name","project","resolve","root"],"verb":{"related":{"list":["git-user-email","git-user-name","git-username","git-repo-name"]}},"gitHead":"960b94c6e84fe2a42f1016b4ae59c82ebc878fbc","_id":"project-name@0.2.2","_shasum":"34e29826bff69a1f111b755718cf299dc9eda7ce","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"34e29826bff69a1f111b755718cf299dc9eda7ce","size":2809,"noattachment":false,"key":"/project-name/-/project-name-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-name/download/project-name-0.2.2.tgz"},"directories":{},"publish_time":1448682368561,"_cnpm_publish_time":1448682368561,"_hasShrinkwrap":false},"0.2.1":{"name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/project-name","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.8.4","git-repo-name":"^0.5.0","lazy-cache":"^0.2.4","load-pkg":"^2.0.1"},"devDependencies":{"mocha":"*"},"keywords":["app","detect","dir","directory","dirname","match","name","project","resolve","root"],"verb":{"related":{"list":["git-user-email","git-user-name","git-username","git-repo-name"]}},"gitHead":"968292cbcf974f765bf3eeb7f9589c010294232a","_id":"project-name@0.2.1","_shasum":"1b7565da21fa4cb564e1f2da469a4858e6fa7bcc","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1b7565da21fa4cb564e1f2da469a4858e6fa7bcc","size":2739,"noattachment":false,"key":"/project-name/-/project-name-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-name/download/project-name-0.2.1.tgz"},"directories":{},"publish_time":1446675631467,"_cnpm_publish_time":1446675631467,"_hasShrinkwrap":false},"0.2.0":{"name":"project-name","description":"Get the name of a project, from package.json, git config, or basename of the current working directory.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/project-name","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/project-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.8.4","git-repo-name":"^0.4.0","lazy-cache":"^0.2.3","load-pkg":"^2.0.1"},"devDependencies":{"mocha":"*"},"keywords":["app","detect","dir","directory","dirname","match","name","project","resolve","root"],"verb":{"related":{"list":["git-user-email","git-user-name","git-username","git-repo-name"]}},"gitHead":"968292cbcf974f765bf3eeb7f9589c010294232a","_id":"project-name@0.2.0","_shasum":"fe43ced759186a214b3dd61386c9c9015e1e9ae7","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"fe43ced759186a214b3dd61386c9c9015e1e9ae7","size":2721,"noattachment":false,"key":"/project-name/-/project-name-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-name/download/project-name-0.2.0.tgz"},"directories":{},"publish_time":1445369491892,"_cnpm_publish_time":1445369491892,"_hasShrinkwrap":false}},"readme":"# project-name [![NPM version](https://img.shields.io/npm/v/project-name.svg?style=flat)](https://www.npmjs.com/package/project-name) [![NPM monthly downloads](https://img.shields.io/npm/dm/project-name.svg?style=flat)](https://npmjs.org/package/project-name) [![NPM total downloads](https://img.shields.io/npm/dt/project-name.svg?style=flat)](https://npmjs.org/package/project-name) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/project-name.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/project-name)\n\n> Get the name of a project, from package.json, git config, or basename of the current working directory.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save project-name\n```\n\n## Usage\n\nRequires [Node.js](https://nodejs.org/en/) >=8.\n\n**Project name**\n\nThe project name is resolved in this order:\n\n1. Check for package.json, if it exists `name` is returned\n2. Check for git repository, if it exists return the `name` parsed from the remote origin URL\n3. Otherwise, use `path.basename(process.cwd())`\n\n```js\nconst name = require('project-name');\nconsole.log(name());\n// or\nconsole.log(name('some/file/path'));\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning 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:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [git-repo-name](https://www.npmjs.com/package/git-repo-name): Get the repository name from the git remote origin URL. | [homepage](https://github.com/jonschlinkert/git-repo-name \"Get the repository name from the git remote origin URL.\")\n* [git-user-email](https://www.npmjs.com/package/git-user-email): Get the email address of the current user from git config. | [homepage](https://github.com/jonschlinkert/git-user-email \"Get the email address of the current user from git config.\")\n* [git-user-name](https://www.npmjs.com/package/git-user-name): Get a user's name from git config at the project or global scope, depending on… [more](https://github.com/jonschlinkert/git-user-name) | [homepage](https://github.com/jonschlinkert/git-user-name \"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.\")\n* [git-username](https://www.npmjs.com/package/git-username): Get the username (or 'owner' name) from a git/GitHub remote origin URL. | [homepage](https://github.com/jonschlinkert/git-username \"Get the username (or 'owner' name) from a git/GitHub remote origin URL.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on December 10, 2018._","_attachments":{},"homepage":"https://github.com/jonschlinkert/project-name","bugs":{"url":"https://github.com/jonschlinkert/project-name/issues"},"license":"MIT"}