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

freelanceflow-shared

v1.1.0

Published

Shares enums and utilities for the FreelanceFlow project.

Downloads

12

Readme

freelanceflow-shared

freelanceflow-shared is a package designed to share enums and utilities for the FreelanceFlow project. This package includes enums related to project management, offer statuses, and states in Brazil.

Installation

You can install the package via npm:

npm install freelanceflow-shared

Usage

Enums

This package exports several enums for use in your project:

OfferStatusEnum

Represents the various statuses an offer can have.

import OfferStatusEnum from 'freelanceflow-shared/lib/enums/OfferStatusEnum';

// Get all offer statuses
const allStatuses = OfferStatusEnum.getAllOfferStatus();

// Get an offer status by ID
const statusById = OfferStatusEnum.getOfferStatusById(1);

// Get an offer status by value
const statusByValue = OfferStatusEnum.getOfferStatusByValue('open');

ProjectAreaEnum

Represents different areas of a project.

import ProjectAreaEnum from 'freelanceflow-shared/lib/enums/ProjectAreaEnum';

// Get all project areas
const allAreas = ProjectAreaEnum.getAllProjectAreas();

// Get a project area by ID
const areaById = ProjectAreaEnum.getProjectAreaById(1);

// Get a project area by value
const areaByValue = ProjectAreaEnum.getProjectAreaByValue('data-science');

ProjectStatusEnum

Represents the various statuses a project can have.

import ProjectStatusEnum from 'freelanceflow-shared/lib/enums/ProjectStatusEnum';

// Get all project statuses
const allStatuses = ProjectStatusEnum.getAllProjectStatus();

// Get a project status by ID
const statusById = ProjectStatusEnum.getProjectStatusById(1);

// Get a project status by value
const statusByValue = ProjectStatusEnum.getProjectStatusByValue('open');

StatesEnum

Represents Brazilian states.

import StatesEnum from 'freelanceflow-shared/lib/enums/StateEnum';

// Get all states
const allStates = StatesEnum.getAllStates();

// Get a state by ID
const stateById = StatesEnum.getStateById(1);

// Get a state by code
const stateByCode = StatesEnum.getStateByCode('AC');

Documentação

OfferStatusEnum

  • static getAllOfferStatus(): Recupera uma lista de todos os status de oferta.
  • static getOfferStatusById(id): Recupera um status de oferta específico pelo seu ID.
  • static getOfferStatusByValue(value): Recupera um status de oferta específico pelo seu valor.

ProjectAreaEnum

  • static getAllProjectAreas(): Recupera uma lista de todas as áreas de projeto.
  • static getProjectAreaById(id): Recupera uma área de projeto específica pelo seu ID.
  • static getProjectAreaByValue(value): Recupera uma área de projeto específica pelo seu valor.

ProjectStatusEnum

  • static getAllProjectStatus(): Recupera uma lista de todos os status de projeto.
  • static getProjectStatusById(id): Recupera um status de projeto específico pelo seu ID.
  • static getProjectStatusByValue(value): Recupera um status de projeto específico pelo seu valor.

StatesEnum

  • static getAllStates(): Recupera uma lista de todos os estados.
  • static getStateById(id): Recupera um estado específico pelo seu ID.
  • static getStateByCode(code): Recupera um estado específico pelo seu código.