Wondering what’s next for npm?Check out our public roadmap! »

    @skr571999/crc

    0.1.0 • Public • Published

    Create React Component

    A package for creating React component for TS and JS.

    Installation

    npm i -g @skr571999/crc

    or running using npx (without Installing)

    npx @skr571999/crc -n ComponentName

    Usage/Options

    Usage: crc -n <name>
    
    Options:
          --help       Show help                                       [boolean]
          --version    Show version number                             [boolean]
      -n, --compName   Component name                        [string] [required]
      -l, --language   Language [js, ts(default)]                       [string]
      -c, --component  Make component [No(default)]                    [boolean]

    Examples

    • For JavaScript
    cd src
    crc -n TextBox -l js
    
    # will create following component structure
    src
    ├── components
        ├── TextBox
            ├── textbox.view.jsx
            └── index.js
    • For TypeScript
    cd src
    crc -n TextBox
    
    # will create following component structure
    src
    ├── components
        ├── TextBox
            ├── textbox.view.tsx
            └── index.ts
    • For TypeScript with a .container.tsx file
    cd src
    crc -n TextBox -c
    
    # will create following component structure
    src
    ├── components
        ├── TextBox
            ├── textbox.container.tsx
            ├── textbox.view.tsx
            └── index.ts

    Install

    npm i @skr571999/crc

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    4.06 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar