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

bolet-data-schema

v1.3.66

Published

This guide will walk you through the steps to locally publish and use the `data_schema` package in your project.

Downloads

1,163

Readme

Local Publishing and Usage of data_schema Package

This guide will walk you through the steps to locally publish and use the data_schema package in your project.

Step 1: Build the data_schema Package

First, navigate to the data_schema directory and build the package. This is typically done by running a build script defined in the package.json file. In this case, the script is tsc (TypeScript compiler).

cd data_schema
yarn build

Step 2: Locally Publish the data_schema Package

There's no need to publish the package to npm if you're only using it locally. Instead, you can reference the local path of the package in your main project's package.json file.

Step 3: Use the data_schema Package in Your Main Project

In your main project's package.json file, add a new line in the dependencies section for the data_schema package. Use the file: prefix followed by the relative path to the data_schema directory.

{
  "dependencies": {
    "data_schema": "file:data_schema"
  }
}

Step 4: Install the data_schema Package

Now, you can install the data_schema package in your main project by running yarn install or npm install.

yarn install

Step 5: Import and Use the data_schema Package

You can now import and use the data_schema package in your project like any other package.

import * as dataSchema from 'data_schema';

Remember to replace data_schema with the actual name of your package if it's different.

Note

The version of the local package is determined by the version field in the package.json of the data_schema directory. If you want to use a specific version of your local package, you need to set that version in the data_schema/package.json file.