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 🙏

© 2024 – Pkg Stats / Ryan Hefner

give-me-this

v1.0.5

Published

這是一個因為懶惰而誕生的 CLI 工具,<br> 你可以將想要複製的「檔案/資料夾」存取在一個 key 上,<br> 之後就可以透過 CLI 快速的把資源給取出來。

Downloads

7

Readme

Give Me This!

這是一個因為懶惰而誕生的 CLI 工具, 你可以將想要複製的「檔案/資料夾」存取在一個 key 上, 之後就可以透過 CLI 快速的把資源給取出來。

Install

因為是 CLI 所以必須安裝在全域上。

npm

npm install -g give-me-this

yarn

yarn add global give-me-this

Quick Start

當你要新建一個 Component 的時候可能會需要做以下的麻煩事:

  • 新建資料夾
  • 新建 index.js
  • 寫好 index.js render function
  • 新建 style.js
  • 寫好 style.js 的基本 style
  • ...

現在我們可以將 Component 儲存成 key。 之後要用的時候直接拿出來用就可以了, 就像是一個 Template 一樣! 現在下方是我們的專案資料夾:

/project
  /src
    /components
      /Card
        - index.js
        - style.js

現在我們先到 components 資料夾:

cd ./project/src/components

輸入 command 把 Card 存在 key "Card" 上:

giveme -s Card ./Card

接下來我們就可以在任意地方輸入:

giveme Card

就可以拿出我們的 Card Template 了! 可喜可賀,可喜可賀。

How To Use

目前開放三個功能:

存取

將檔案儲存到 KEY 上,需要注意的是你提供的 PATH 是一個相對路徑 初始路徑則是基於你當前的所在位置。

giveme -s KEY PATH

API | param | required | description | |-------|----------|-------------| | KEY | required | 你要存取的檔案會記錄在這個 key | | PATH | required | 你要存取的檔案的路徑 |

取出

輸入 KEY 將存取的檔案取出。

giveme KEY PATH

API | param | required | description | |-------|----------|-------------| | KEY | required | 你要取出的檔案所對應的 KEY | | PATH | optional | 取出的檔案所要存放的路徑 |

列出所有 KEY

你可能會想知道自己存了哪些 KEY。

giveme -l