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

react-ts-fb-login

v1.2.5

Published

A React package for easy Facebook login integration.

Downloads

112

Readme

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

//make packages

  1. Prepare your project Before publishing your React project to npm, ensure that it's ready for distribution. This includes:

Testing: Make sure your project passes all tests. Documentation: Write clear documentation for your project, including how to install, configure, and use it. Versioning: Decide on the version number for your package. Following semantic versioning (semver.org) is recommended. 2. Create an npm account If you don't already have an npm account, you'll need to create one. You can sign up for free at npmjs.com/signup.

  1. Log in to npm Once you have an npm account, log in to the npm CLI on your machine by running:

Copy code npm login Enter your npm username, password, and email when prompted.

  1. Set up your package.json Make sure your package.json file is configured correctly. At a minimum, it should include the following fields:

name: The name of your package (should be unique). version: The version of your package. description: A brief description of your package. main: The entry point of your package (typically the main JavaScript file). author: Your name or the name of your organization. license: The license under which your package is distributed. 5. Build your project Before publishing, you might want to build your React project if it's not already built. You can do this using your preferred build tool (e.g., Webpack, Parcel, or Create React App). Ensure that the build output is included in your .gitignore file.

  1. Publish your package Once your project is ready, navigate to its root directory in your terminal and run:

Copy code npm publish This command will publish your package to the npm registry. Make sure you have appropriate permissions to publish the package under the specified name.

  1. Verify After publishing, you can verify that your package was published successfully by visiting its page on the npm website (https://www.npmjs.com/package/your-package-name).

Additional Tips: Semantic Versioning: Follow semantic versioning guidelines to manage your package versions effectively. README: Write a detailed README file that explains how to install, configure, and use your package. Keywords: Add relevant keywords to your package.json to make your package easier to discover. License: Choose an appropriate open-source license for your package and include it in your package.json. By following these steps, you should be able to publish your React project to npm successfully.