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

tofisa-package

v7.0.1

Published

This is a private package for using in our project. I use [Typescript](https://www.typescriptlang.org/docs/), cause It enables us to add type safety to our project. That you can use it with installing ***npm i tofisa-package*** in your terminal.

Downloads

1,029

Readme

Introduction

This is a private package for using in our project. I use Typescript, cause It enables us to add type safety to our project. That you can use it with installing npm i tofisa-package in your terminal.

Upgrade package version

1.npx tsc
2.npm init
3.npm login(if you are login you can escape this part)
4.npm publish

Structure

dist

Here, we are telling TypeScript to store the output in dist directory. If we does not specify this option, TypeScript by default puts the output JavaScript file alongside the TypeScript files. Keeping a separate output directory makes development easier. You can find every part of project inside of this folder that when you use this package, you can import components from this part and you don't access the src folder.

src

There are some folders and files inside of this part that I describe every part of that.

src/assets:

In this folder I save public things like, fonts-icons-images that we use them in many components.

src/components:

We create this project for this part, defining every part of main project that use a lot in different sections. Every component has interface. Interfaces get used to ensure that the object contains the required data with the correct data type. In index.ts I just export all the things inside every file That it is important for creating our dist folder.

src/styles:

For style, we use bootstrap-sass. We create our custom.scss that help us to added our bootstap classes to avoid of repetition. We have global.css here just for defining global fonts. Sometimes we need CSS for global styles for this reason we have index.css file. Also, we export both of them inside the index.ts file.

src/index.ts:

This file is used for export the important part of project that it is components.

src/react-app-env.d.ts:

This file references TypeScript types declarations that are specific to projects started with Create React App. These type declarations add support for importing resource files such as bmp, gif, jpeg, jpg, png, webp, and svg. That means that the following import will work as expected without errors: import logo from './logo.svg';
It also adds support for importing CSS Modules.