Gathering detailed insights and metrics for primereact-table-builder-hook
Gathering detailed insights and metrics for primereact-table-builder-hook
An implementation of builder pattern to instantiate primereact's datatable component.
npm install primereact-table-builder-hook
Typescript
Module System
Node Version
NPM Version
60.4
Supply Chain
61.2
Quality
73.5
Maintenance
50
Vulnerability
98.9
License
JavaScript (100%)
Total Downloads
10,400
Last Day
9
Last Week
40
Last Month
202
Last Year
1,376
1 Stars
4 Commits
1 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.2.21
Package Id
primereact-table-builder-hook@0.2.21
Unpacked Size
4.88 MB
Size
1.24 MB
File Count
45
NPM Version
6.14.15
Node Version
14.18.3
Cumulative downloads
Total Downloads
Last day
125%
9
Compared to previous day
Last week
150%
40
Compared to previous week
Last month
96.1%
202
Compared to previous month
Last year
-27.9%
1,376
Compared to previous year
12
12
25
This project is created to simplify the process of publishing a React component to npm. For a full tutorial on publishing React component to npm, please refer to this guide
Replace contents in /src
with your React component.
Edit webpack.config.js
, replace the following:
entry: './src/YOUR_COMPONENT.js'
Replace value of entry
to path to the entry point of your component.output.filename
to the name of your component output: {
path: path.resolve('lib'),
filename: 'YOUR_COMPONENT.js',
libraryTarget: 'commonjs2',
},
Edit package.json
, replace the following:
"name": "YOUR_PACKAGE_NAME"
Replace the value of name
to your package name. This will be the name of the package that is published to npm
and the name that is used when other people install your package using npm install YOUR_PACKAGE_NAME
.version
and description
to accordingly."main": "./lib/YOUR_COMPONENT.js"
replace YOUR_COMPONENT.js
with the name that you've set in output.filename
during Step #2peerDependencies
list.Building your component by running npm build
in your command line. This would generate the folder /lib
which includes your component.
Publishing to npm
npm login
in your command line, and enter your credentials.npm publish
, and your React component will be uploaded to npm! You can find it at https://www.npmjs.com/package/[YOUR PACKAGE NAME] or your npm profile.To update your package, make sure you remember to increment the version
in package.json
, and then perform Step #5 again.
No vulnerabilities found.
No security vulnerabilities found.