Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@the-collab-lab/shopping-list-utils

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@the-collab-lab/shopping-list-utils

A collection of utility methods used for the shopping list project

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Shopping List Utils

This is an NPM package used to share common methods between the shopping list applications for The Collab Lab!

Getting Started

To use this package, you can run the following in your project:

npm i @the-collab-lab/shopping-list-utils

and use it in your projects like so:

import { generateToken, words, calculateEstimate } from '@the-collab-lab/shopping-list-utils

Current features include:

FunctionDescription
wordsAn array of words available for use when generating a token.
generateTokenCreates a random token string that is 3 words long based on a random calculation.
calculateEsimateThis is used to calculate when someone will want to purchase another item based on their purchasing habits.

Contributing to the Repo

All the code is hosted in the src folder and organized into directories by functionality. If you would like to add a new feature, you can create a directory for it, and then add an export from that directory in the src/index.ts file.

This repository is currently set up with ESLint and Prettier for formatting, and you can run npm run lintfix and npm run format to clean up the codebase.

Tests are also set up with Jest and can be run with npm run test

Publishing a Release

Before creating a release, make sure to increment the version number in package.json

Releases are automatically built with a Github Workflow Action when a new release is published in Github.

FAQs

Package last updated on 13 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc