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

react-native-template-cprntemplate

v0.1.6

Published

1、注册账号 https://www.npmjs.com/ #2、终端执行命令 npm adduser --registry http://registry.npmjs.org 3、根据提示输入第一步中注册好的账号、密码、邮箱 4、将当前路径切换到要发布的模板的文件夹中(保证有package.json文件) #5、终端执行命令进行发布 npm publish --registry http://registry.npmjs.org 6、发布成功后通过

Readme

1、注册账号 https://www.npmjs.com/
#2、终端执行命令 npm adduser --registry http://registry.npmjs.org
3、根据提示输入第一步中注册好的账号、密码、邮箱
4、将当前路径切换到要发布的模板的文件夹中(保证有package.json文件)
#5、终端执行命令进行发布
npm publish --registry http://registry.npmjs.org 6、发布成功后通过【https://www.npmjs.com/+ 插件名 】可以在网页访问
account:ccp_fpa version:0.0.2:西宁党建
version:0.0.3+:基础开放模板

Attention:如果命令 #生成代码命令 npx react-native init ProjectName --template cprntemplate 失败的话可以先切换安装源为淘宝:

使用nrm工具切换淘宝源

        npx nrm use taobao

#注意替换app.json对于的项目名称 { "name": "RNSCPartyCommittee",//此处修改为生成模板项目时的ProjectName "displayName": "RNSCPartyCommittee"//此处修改为ProjectName }

#Android build配置 可参见 ~/setting_template.gradle
app/build_template.gradle #代码-android

android /app/build.gradle 

 defaultConfig {
        ...
        multiDexEnabled true
        missingDimensionStrategy 'react-native-camera', 'general'
        manifestPlaceholders = [
                JPUSH_APPKEY: "0d6ab8563f95a4d0fd27b256",         //在此替换你的APPKey
                JPUSH_CHANNEL: "rn-jpush"        //在此替换你的channel
        ]
        ndk {
                    //选择要添加的对应cpu类型的.so库。
                    abiFilters 'armeabi-v7a'
                    // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
        }
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a"// "x86", "arm64-v8a", "x86_64"
        }
    }
     sourceSets {
            main {
                jniLibs.srcDir 'libs'
            }
        }
dependencies {
     implementation project(':jpush-react-native')
     implementation project(':jcore-react-native')
     implementation project(':react-native-camera')
     implementation project(':react-native-image-picker')
     implementation fileTree(include: ['*.jar'], dir: 'libs')
     
     implementation 'com.android.support:multidex:1.0.3'
     ...
 }

#Manifest设置 //JPush 配置 #Application错误 如果出现类找不到的话,手动将三方库加入setting.gradle和app/build.gradle #Flipper報錯 不要使用自动生成的ReactNativeFlipper,使用
private static void initializeFlipper( ... Class<?> aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper");

       ...
    }