npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yasshi2525/export-gitproject

v1.0.0

Published

copy and replace current git project with custom rules for exporting another git project.

Readme

export-gitproject

既存の Git プロジェクトを別のプロジェクトとしてエクスポートします。 ファイルを別のファイルで置き換えたり、一部のファイルを除外してエクスポートできます。

使い方

export-gitproject [--config=<path>] [--cwd=<path>]

| オプション名 | 必須か | 値の例 | 省略時のデフォルト値 | 説明 | | --------------- | ------ | -------------------- | ------------------------ | --------------------------------------------- | | --config,-c | No | custom.config.json | export-gitproject.json | 設定ファイルのパスを指定します | | --cwd,-d | No | other_project | . | 出力対象の Git プロジェクトディレクトリのパス |

設定ファイル

本コマンドの実行には設定ファイル ./export-gitproject.json が必要です。 設定ファイルのパスはコマンドオプション --config,-c で変更できます。

./export-gitproject.json の例

{
    "copy": {
        "exclude": ["replace"]
    },
    "replace": [
        {
            "from": "replace/overwritten_by",
            "to": "replace/original"
        }
    ]
}

| パラメタ | 必須か | 値の例 | 省略時のデフォルト値 | 説明 | | -------------------------- | ------ | ---------------- | -------------------- | ---------------------------------------------------------------------- | | out | No | "dest" | "out" | エクスポート先のパス | | copy.exclude | No | ["lib"] | [] | エクスポートしないパターン | | replace | No | | [] | ファイルを置き換えるルール | | replace[].from | Yes | "dummy-images" | - | toディレクトリはこのディレクトリに置き換えられます | | replace[].to | Yes | "images" | - | このディレクトリはfromディレクトリに置き換えられます | | replace[].errorOnUnmatch | No | true | false | fromtoディレクトリのファイル構成に差があった場合にエラーとするか |

copy.exclude.gitignore で指定可能なパターンを指定できます。 なお、設定によらず .git, .gitignore にマッチするファイル, 設定ファイル はエクスポートされません。

なお、設定ファイルの JSON スキーマはこちらで公開しています。

License

MIT License

Author

yasshi2525 X