Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

projectz

bevry4.5kArtistic-2.04.2.0TypeScript support: included

Stop wasting time syncing and updating your project's README and Package Files!

badges, bower, bower.json, browserify, build, buildtool, component, component.json, documentation, es2022, generator, jquery.json, jspm, license, markdown, meta, metabuild, node, package.json, project, readme, typed, types, typescript

readme

Projectz

Status of the GitHub Workflow: bevry NPM version NPM downloads
GitHub Sponsors donate button ThanksDev donate button Patreon donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button
Discord server badge Twitch community badge

Stop wasting time syncing and updating your project's README and Package Files!

This far, projectz is used directly by 802 repositories and 348 packages, and indirectly by 2936 repositories and 349 packages.

Watch the talk.

Here's some of the things it can do:

Running Projectz

Directly

Once installed locally, you can compile your project using projectz by running the following in your terminal:

npx projectz

Automatically

To make projectz more automatic, we recommended adding the direct command above to your build tool.

If you don't use a build tool, but do use npm, then you can add the following to your project's package.json file:

{
    "scripts": {
        "compile": "projectz",
        "posttest": "projectz"
    }
}

The compile script here is runnable via the command npm run-script compile and will compile your project with projectz.

The posttest script here automatically compiles your project with projectz after your tests have successfully completed, providing you use npm test to run your tests. This is a great place to put projectz as projectz only updates meta documents so won't affect your test, and will always run before a publish.

GitHub Rate Limiting

If you get a rate limit warning, you will need to add GITHUB_ACCESS_TOKEN (or a GITHUB_CLIENT_ID AND GITHUB_CLIENT_SECRET combination) to your environment. To do this:

  1. Create a personal access token for your computer at: https://github.com/settings/tokens
  2. Projectz needs the readonly/access permissions for repos and users
  3. Generate the token and copy it
  4. Inside your dotfile profile (.bashrc, .zshrc) add export GITHUB_ACCESS_TOKEN="the token value"
  5. Open a new shell, or run export GITHUB_ACCESS_TOKEN="the token value" in your current shell
  6. Run projectz again

Configuring Projectz

Package Files

Projectz helps you maintain the following package files:

  • package.json
  • bower.json
  • component.json
  • jquery.json

It does this by reading them, combining their data in memory, and then outputting the appropriate fields and over-rides for each file.

If you are making use of multiple package files, you may find defining a projectz.json package file will help, as it can serve as a central location for the configuration of all the other files. However, if you only require one package file, then you can ignore this ability.

Projectz takes notes of these meta data fields:

{
    // Specify your project's human readable name
    "title": "Projectz",

    // Specify your project name
    "name": "projectz",

    // Specify your project's Website URL
    "homepage": "https://github.com/bevry/projectz",

    // Specify your project's demo URL
    // If this is missing, and `homepage` is set, we set it to the `homepage` value
    "demo": "https://github.com/bevry/projectz",

    // Specify your project description
    "description": "Stop wasting time syncing and updating your project's README and Package Files!",

    // Specify your project's SPDX License
    // Uses https://www.npmjs.com/packages/spdx for parsing
    "license": "MIT",

    // Specify your whether the project can run on the client-side in web browsers
    // If this is missing, and the component or bower package files exist, then this becomes `true`
    "browsers": true,

    // Specify your project's author details
    // Can be an array or CSV string
    "author": "2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me)",

    // Specify your maintainers
    "maintainers": [
        "Benjamin Lupton (b@lupton.cc) (http://balupton.com)"
    ],

    // Specify your sponsors
    "sponsors": [
        "Benjamin Lupton (b@lupton.cc) (http://balupton.com)"
    ],

    // Specify your contributors
    // This is automatically combined with the contributors from the GitHub Repository API
    "contributors": [
        "Benjamin Lupton (b@lupton.cc) (http://balupton.com)"
    ],

    // Specify your project's repository details
    // If this is missing, and `homepage` is a GitHub URL, this determined automatically
    "repository": {
        "type": "git",
        "url": "https://github.com/bevry/projectz.git"
    },

    // Specify your project's issue tracker
    // If this is missing, and `repository` is a GitHub repository, this determined automatically
    "bugs": {
        "url": "https://github.com/bevry/projectz/issues"
    },

    // Specify your project's badges for use in the readme files
    // Projectz renders badges by sending the `badges` field to the `badges` package.
    // Below is some sample projectz configuration for this field to render our most common badges.
    // Even more badge types and configurations are available than just those included below.
    // Complete details of what is available can be found over at the badges package:
    // https://github.com/bevry/badges
    "badges": {
        "list": [
            "travisci",
            "npmversion",
            "npmdownloads",
            "daviddm",
            "daviddmdev",
            "---",
            "slackin",
            "patreon",
            "gratipay",
            "flattr",
            "paypal",
            "bitcoin",
            "wishlist"
        ],
        "config": {
            "patreonUsername": "bevry",
            "gratipayUsername": "bevry",
            "flattrUsername": "balupton",
            "paypalURL": "https://bevry.me/paypal",
            "bitcoinURL": "https://bevry.me/bitcoin",
            "wishlistURL": "https://bevry.me/wishlist",
            "slackinURL": "https://slack.bevry.me"
        }
    },

  // If you are using the projectz meta file, you can also define this field
  // it allows you to set the configuration for other package systems
  "packages": {
    "bower": {},
    "component": {},
    "jquery": {}
  }
}

Readme Files

Projectz helps you maintain the following readme files:

  • README.md
  • CONTRIBUTING.md
  • LICENSE.md
  • BACKERS.md
  • HISTORY.md

It does this by reading them, and replacing comment tags with the appropriate data.

The following comment tags are supported:

  • <!-- TITLE --> — outputs the package's title field
  • <!-- BADGES --> — outputs the badges you have enabled from your package's badges field
  • <!-- DESCRIPTION --> — outputs the package's description field
  • <!-- INSTALL --> — outputs the package's installation instructions
  • <!-- HISTORY --> — outputs a link to the HISTORY file if it exists, otherwise if it is a Github repository, outputs a link to the releases page
  • <!-- CONTRIBUTE --> — outputs a link to the CONTRIBUTE file if it exists
  • <!-- BACKERS --> — outputs who the backers are for the project, including maintainers, sponsors, funding badges, and contributors
  • <!-- LICENSE --> — outputs a summary of the license information

As well as these comment tags for updating entire files:

  • <!-- LICENSEFILE --> — outputs the complete license information
  • <!-- BACKERSFILE --> — same as <!-- BACKERS --> but made for an individual file instead

As an example, here is a a basic README.md file:

<!-- TITLE -->
<!-- BADGES -->
<!-- DESCRIPTION -->
<!-- INSTALL -->

## Usage

Complete API Documentation.

Usage instructions go here

<!-- HISTORY -->
<!-- CONTRIBUTE -->
<!-- BACKERS -->
<!-- LICENSE -->

This README is also, expectedly, built with projectz. View its source.

Install

npm

Install Globally

  • Install: npm install --global projectz
  • Executable: projectz

Install Locally

  • Install: npm install --save projectz
  • Executable: npx projectz
  • Import: import * as pkg from ('projectz')
  • Require: const pkg = require('projectz')

Editions

This package is published with the following editions:

History

Discover the release history by heading on over to the HISTORY.md file.

Backers

Code

Discover how to contribute via the CONTRIBUTING.md file.

Authors

Maintainers

Contributors

Finances

GitHub Sponsors donate button ThanksDev donate button Patreon donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button

Sponsors

  • Andrew Nesbitt — Software engineer and researcher
  • Balsa — We're Balsa, and we're building tools for builders.
  • Codecov — Empower developers with tools to improve code quality and testing.
  • Poonacha Medappa
  • Rob Morris
  • Sentry — Real-time crash reporting for your web apps, mobile apps, and games.
  • Syntax — Syntax Podcast

Donors

License

Unless stated otherwise all works are:

and licensed under:

changelog

History

v4.2.0 2023 December 30

v4.1.1 2023 December 28

v4.1.0 2023 December 28

v4.0.0 2023 December 27

v3.4.0 2023 November 25

v3.3.0 2023 November 21

v3.2.0 2023 November 15

v3.1.0 2023 November 15

v3.0.0 2023 November 14

  • Updated dependencies, base files, and editions using boundation
  • Minimum required Node.js version changed from node: >=18 to node: >=20 adapting to ecosystem changes

v2.23.0 2023 March 24

v2.22.0 2021 July 30

v2.21.0 2021 July 30

  • Don't use npx anymore during our tests, it doesn't do what we actually want, and it keeps prompting to install things.
  • Updated dependencies, base files, and editions using boundation

v2.20.0 2021 July 30

  • Fixed fatal errors going unreported
  • No longer support CSON for package files, JSON only.
  • No longer outputs logging line info if --verbose is not present
  • Better debugging for file and json reading, writing, and directory reading.
  • Fixed missing package.json:badges.config from crashing the compile.
  • --debug now tells you to use --verbose instead, rather than doing nothing.
  • Updated dependencies, base files, and editions using boundation

v2.19.0 2021 July 29

v2.18.0 2020 November 23

v2.17.0 2020 October 29

v2.16.0 2020 September 5

v2.15.0 2020 August 18

v2.14.0 2020 August 15

v2.13.0 2020 August 4

v2.12.0 2020 July 23

v2.11.0 2020 June 25

v2.10.1 2020 June 22

v2.10.0 2020 June 22

v2.9.0 2020 June 21

v2.8.0 2020 June 20

v2.7.0 2020 June 11

v2.6.0 2020 June 10

v2.5.0 2020 June 10

v2.4.0 2020 May 22

v2.3.0 2020 May 21

v2.2.0 2020 May 21

v2.1.0 2020 May 11

v2.0.0 2020 May 8

  • Converted from JavaScript to TypeScript
  • -p <value> cli arg is now --path=<value>
  • -d cli arg is now --verbose
  • Contributors are no longer fetched from github, if you want that functionality, use @bevry/update-contributors
    • If this is an issue, file an issue with a small bounty and it can be re-added
    • This was done, as
  • Contributors and Maintainers will now have their github URL used instead of their homepage in the json listings
  • No more duplicate contributors and maintainers
  • No more bots listed as contributors and maintainers
  • Updated dependencies, base files, and editions using boundation
  • Minimum required node version changed from node: >=8 to node: >=14 as projectz's tests have issues with supporting all but the latest LTS

v1.19.1 2020 April 21

  • Fix crash when trying to generate install instructions for an edition that lacks an entry
    • This can happen in the case of editioned websites, which only specify directory: '.'

v1.19.0 2019 December 18

  • Ignore contributors that are bots (identified by [bot] in their name)

v1.18.0 2019 December 18

  • Removed browser edition entry from unkpkg URL as it is not necessary
  • Added links for Node.js, the Editions Autoloader, and ECMAScript versions
  • Babel Polyfill section is removed as modern ecosystem doesn't need it

v1.17.1 2019 December 18

  • Fixed v1.17.0 busting edition names

v1.17.0 2019 December 18

  • Install instructions adjust accordingly depending on if there is a default export or not (detected by presence of the export-default keyword)
  • Add install instructions for pika and unpkg if the project is a module
  • Updated dependencies, base files, and editions using boundation

v1.16.0 2019 December 10

v1.15.0 2019 December 6

v1.14.0 2019 December 1

v1.13.0 2019 December 1

v1.12.0 2019 November 18

v1.11.0 2019 November 18

v1.10.0 2019 November 13

v1.9.0 2019 November 11

  • Implemented support for GITHUB_API environment variable to access the GitHub API via a proxy

v1.8.0 2019 November 11

v1.7.5 2019 September 11

v1.7.4 2018 December 22

  • Prevent pacakge-lock.json from being read
  • Switched from CSON to season, as CSON doesn't handle sync errors, and no one has maintained it

v1.7.3 2018 December 19

  • Internal documentation updates

v1.7.2 2018 December 19

  • Moved npm require instructions after the command instructions for consistency

v1.7.1 2018 December 19

  • Fixed an eyesore with the jspm installation instructions
  • Only output TypeScript blurb on modules

v1.7.0 2018 December 19

  • Updated installation instructions for latest ecosystem changes

v1.6.0 2018 December 19

v1.5.3 2018 November 15

  • Note that contributors may also fail to fetch if the internet is disconnected.

v1.5.2 2018 November 15

v1.5.1 2018 November 15

  • Fixed failures in fetching contributors causing projectz to crash
  • Now uses githubauthquerystring to generate the GitHub Auth Query Strings.

v1.5.0 2018 November 15

  • Removed compiled editions as they are no longer needed with modern node versions
  • Updated editions format for editions v2.1.0
  • Updated base files using boundation
  • Updated for latest dependencies

v1.4.0 2017 April 10

  • Updated base files
  • Updated dependencies

v1.3.2 2016 October 24

  • Load the fellow edition that corresponds with the projectz edition

v1.3.1 2016 October 23

  • Update dependencies

v1.3.0 2016 October 19

  • Add new support for the newer editions standard while keeping support for the old standard

v1.2.0 2016 September 19

v1.1.6 2016 June 8

  • Updated dependencies
  • Updated internal conventions

v1.1.5 2016 May 4

  • Updated dependencies

v1.1.4 2016 May 2

  • Fix error if have a cached version of fellow
  • Updated base files

v1.1.3 2016 May 2

v1.1.2 2016 March 20

  • Repackaged

v1.1.1 2016 March 20

  • Fix projectz: line 1: //: is a directory

v1.1.0 2016 March 20

  • Repackaged with Editions
  • Added editions rendering

v1.0.9 2015 December 10

  • Updated esnextguardian script

v1.0.8 2015 December 7

  • Moved from ECMAScript Modules to CommonJS Modules due to lack of Node.js support
  • Updated base files

v1.0.7 2015 November 30

  • Updated dependencies

v1.0.6 2015 September 21

  • Browser install instructions will now correctly display is bower or component configuration exists, or browser or jspm fields exist

v1.0.5 2015 September 21

  • Updated dependencies

v1.0.4 2015 September 20

  • Fixed missing esnextguardian dependency (regression since v1.0.3)

v1.0.3 2015 September 20

  • Readme files will correctly finish with a newline character
  • Updated dependencies
  • Fixed second author losing their year

v1.0.2 2015 September 18

  • Continue if fetching github contributors fails

v1.0.1 2015 September 16

  • Fixed github API auth for user api requests

v1.0.0 2015 September 16

  • Initial stable release
  • Readme and Package files are now extension independent
  • Readme sections are now outputted in HTML instead of Markdown to be more universal
  • Support SPDX licenses - Implements #72, #66 - Fixes #65
  • Uses new bevry/badges package for badge rendering - Implements #67, #55, #25, #10
  • Uses new bevry/fellow package for people handling - Implements #37, #11
  • Newline no longer required at start of readme file - Fixes #53
  • Moved from CoffeeScript to ES6+ - Fixes #20

v0.5.0 2015 February 24

  • Support multiple licenses - Currently only MIT and CC-BY-4.0 are supported

v0.4.3 2015 February 13

  • Appends new line when saving packages

v0.4.2 2015 February 11

  • Fixes cmd line -d option
  • Fixes CRLF issue that occurred in the v0.4.1 npm package

v0.4.1 2015 February 09

  • Fixes incorrect handling of CSON.parseFile

v0.4.0 2015 February 09

  • Removed merging of dependencies between Package.json and Bower.json
  • Added Node v0.12.0 support

v0.3.17 2014 December 11

  • Fixed david badges (regression from v0.3.16)

v0.3.16 2014 December 11

  • Better badges
  • New npm downloads badge
  • Updated dependencies

v0.3.15 2014 June 23

  • Updated dependencies

v0.3.14 2014 May 31

  • Add support for global install instructions

v0.3.13 2014 May 17

  • Keep contributor cache valid for one day

v0.3.12 2014 May 17

  • Updated dependencies

v0.3.11 2014 February 19

  • Added DocPad plugin install instructions
  • Added support for the browser field, see readme

v0.3.10 2014 February 6

v0.3.9 Unknown

  • Always show david dependency and dev dependency badges if they are enabled, rather than disabling them if there are no dependencies or dev dependencies

v0.3.8 Unknown

  • Cleaner badge determination

v0.3.7 2014 January 03

v0.3.6 2014 January 03

  • Added bitcoin badge which accepts a URL via the bitcoin badge option
  • Donation badges are now on their own line

v0.3.5 2014 January 01

  • Only show david dm badges if there actually are dependencies for that badge

v0.3.4 2014 January 01

  • Added david-dm dev dependency badge support
  • Automatic badge detection for daviddev

v0.3.3 2014 January 01

  • Added david-dm badge support - Thanks to Rob Loach for pull request #21
  • Automatic badge detection for travis, npm, and david badges
  • Travis file is now regarded as a readme file

v0.3.2 2013 December 16

  • Formatting changes to backers listing

v0.3.1 2013 December 16

  • Formatting changes to backers listing

v0.3.0 2013 December 12

  • Client-side install instructions will only show if browser property is truthy
  • Added new browser property that will default to true if bower or component packages are defined

v0.2.10 2013 December 12

  • Moved docco from dependencies into devDependencies where it belongs

v0.2.9 2013 December 12

  • Fixed CDN URL highlighting

v0.2.8 2013 December 12

  • Changed HISTORY.md and CONTRIBUTING.md URLs and names to always be uppercase
  • Added wzrd.in CDN URL to the Node/Browserify install section

v0.2.7 2013 November 25

  • Updated dependencies

v0.2.6 2013 November 6

  • Updated dependencies

v0.2.5 2013 October 31

  • Seems github doesn't like // urls

v0.2.4 2013 October 31

  • Updated badges to use // for their urls

v0.2.3 2013 October 23

  • Fixed error when encountering an unknown license

v0.2.2 2013 October 23

  • Fixed license and licenses duplicate in package.json file
  • Fixed some issues with contributors and package.json files

v0.2.1 2013 October 16

  • Fixed some issues. Now stable enough to use for your projects.

v0.2.0 2013 October 16

  • Added INSTALL, BACKER, and BACKERFILE tags

v0.1.0 2013 October 15

  • Mostly working except for BACKER tags

v0.0.2 2013 September 19

  • Renamed from readme-utils to projectz

v0.0.1 2013 June 19

  • Initial non-working commit