Gathering detailed insights and metrics for kpc
Gathering detailed insights and metrics for kpc
Gathering detailed insights and metrics for kpc
Gathering detailed insights and metrics for kpc
npm install kpc
Typescript
Module System
Node Version
NPM Version
TypeScript (72.99%)
JavaScript (21.15%)
HTML (4.49%)
CSS (1.22%)
Stylus (0.16%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
367 Stars
4,153 Commits
55 Forks
24 Watchers
19 Branches
28 Contributors
Updated on Jul 14, 2025
Latest Version
1.6.4
Package Id
kpc@1.6.4
Unpacked Size
34.68 MB
Size
8.04 MB
File Count
2,821
NPM Version
6.14.18
Node Version
14.21.3
Published on
Feb 20, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
12
102
English | 简体中文
![]() IE / Edge | ![]() Firefox | ![]() Chrome | ![]() Safari | ![]() Opera |
---|---|---|---|---|
IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
1npm install kpc-vue --save
1<template> 2 <Button>Hello</Button> 3</template> 4<script> 5import {Button} from 'kpc-vue'; 6 7export default { 8 components: { 9 Button 10 } 11} 12</script>
1npm install kpc-react --save
1import React from 'react'; 2import {Button} from 'kpc-react'; 3 4class App extends React.Component { 5 render() { 6 return <Button>Hello</Button> 7 } 8}
1npm install kpc --save
1import {Button} from 'kpc'; 2 3<Button>Hello</Button>
Read more
1npm install kpc-angular -S
webpack.config.js
You need use @angular-builders/custom-webapck
to configure webpack, if your project initialized by Angular CLI.
1const path = require('path'); 2 3module.exports = function(config) { 4 config.module.rules.find(rule => { 5 if (rule.test.toString() === '/\\.css$/') { 6 rule.exclude.push(path.resolve(__dirname, 'node_modules/kpc-angular')); 7 return true; 8 } 9 }); 10 11 return config; 12};
src/app/app.module.ts
1import { KpcBrowserModule, KpcModule } from 'kpc-angular'; 2import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 3 4import { AppRoutingModule } from './app-routing.module'; 5import { AppComponent } from './app.component'; 6 7@NgModule({ 8 declarations: [ 9 AppComponent 10 ], 11 imports: [ 12 KpcBrowserModule, 13 AppRoutingModule, 14 KpcModule, 15 ], 16 providers: [], 17 bootstrap: [AppComponent], 18 schemas: [CUSTOM_ELEMENTS_SCHEMA] 19}) 20export class AppModule { }
1import { Component, ViewEncapsulation } from '@angular/core'; 2import { MessageComponent } from 'kpc-angular'; 3 4@Component({ 5 selector: 'app-root', 6 template: ` 7 <k-button type="primary" (click)="onClick()">Hello World</k-button> 8 `, 9 style: ` 10 .k-button { 11 margin: 10px; 12 } 13 `, 14 encapsulation: ViewEncapsulation.None, 15}) 16export class AppComponent { 17 onClick() { 18 MessageComponent.success('Welcome to kpc world!'); 19 } 20}
Welcome to join us by QQ. Group Number: 529739732
Require
node@10
andnpm@6.9
or above.
1git clone https://github.com/ksc-fe/kpc.git 2cd kpc 3npm install 4npm run dev:doc 5 6# test 7npm run test 8# update snapshots 9npm run snapshot 10# deploy documents 11npm run deploy:doc 12# release new version 13npm run release
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
3 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 6
Reason
Found 1/19 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More