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

@guanghechen/tool-mini-copy

v6.0.0-alpha.16

Published

A cli tool to copy / paste with system clipboard or customized fake clipboard (file).

Downloads

182

Readme

A simple cli copy / paste with System clipboard or customized fake clipboard (file).

Notice: Only text data worked, don't try to copy / paste binary data with this command.

Install

  • npm

    npm install -g @guanghechen/tool-mini-copy
  • yarn

    yarn global add @guanghechen/tool-mini-copy

Usage

  • Help

    $ mcp --help
    Usage: mcp [options] [source content]
    
    Options:
      -V, --version                                     output the version number
      --log-level <level>                               specify logger's level.
      --log-name <name>                                 specify logger's name.
      --log-mode <'normal' | 'loose'>                   specify logger's name.
      --log-flight <option>                             specify logger' option. [[no-]<date|title|colorful|inline>] (default: [])
      --log-filepath <filepath>                         specify logger' output path.
      --log-encoding <encoding>                         specify output file encoding.
      -c, --config-path <configFilepath>                config filepaths (default: [])
      --parastic-config-path <parasticConfigFilepath>   parastic config filepath
      --parastic-config-entry <parasticConfigFilepath>  parastic config filepath
      -e, --encoding <encoding>                         Encoding of content from stdin or file.
      -i, --input <filepath>                            Copy the data from <filepath> to the system clipboard.
      -o, --output <filepath>                           Write the data from the system clipboard into <filepath>.
      -f, --force                                       Overwrite the <filepath> without confirmation.
      -s, --silence                                     don't print info-level log.
      --force                                           force paste the content of the system clipboard without copy even piped data.
      --fake-clipboard [local filepath]                 Specify a fake clipboard.
      --strip-ansi                                      Strip ansi escape codes.
      -h, --help                                        display help for command
  • Basic

    # output the content of the system clipboard
    mcp
    
    # copy the content of data.in to the system clipboard
    mcp 'the data'
    mcp -i data.in
    mcp < data.in
    cat data.in | mcp
    echo 'Hello world' | mcp
    
    
    # write the content of system clipboard into data.out
    mcp >> data.out             # use linux pipeline, redirected the content of system clipboard to data.out
    mcp -o data.out             # (recommended way)
    mcp -o data.out -e UTF-8    # specified the content's encoding
    mcp -o data.out -f          # if the data.out is exist, overwrite it without confirmation.
    
    
    # show usage
    mcp --help

Related