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

@postmates/bizops-frontend-utils

Package Overview
Dependencies
Maintainers
28
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@postmates/bizops-frontend-utils

Common front end utility functions share across Business Operations repositories

  • 1.0.21
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
28
Weekly downloads
 
Created
Source

bizops-frontend-utils

Common front end utility functions shared across Business Operations Repositories. See the following Proposal document outling the reasoning behind this library.

Installing

Using npm: npm i -D @postmates/bizops-frontend-utils Using yarn: yarn add --dev @postmates/bizops-frontend-utils

Utilizing Library

View the src/UTILS.md file for information on available utility functions and examples of how to use them

Adding new utility functions

To add utility functions to this library, please follow the instructions below

Getting Started

  1. Install nvm to your local machine.
  2. Run nvm use to install supported node version.
  3. Run npm install.

Guide to writing utility functions

  1. Add utility functions inside of the src/ directory
  2. Include tests in the tests directory. Ensure that the utility function is 90% coveraged, per repository requirements.
  3. Ensure that all new file(s) are linted by running, npm run lint
  4. Document the purpose of the utility and provide an explanation under the src/UTILS.md file

Ensuring tests work in external world

When publishing a new package, it can be hard to determine whether or not it will work wither other npm packages. To simulate an external package, a deploy_tests folder was created that simulates an external project using the published version. Please add tests in this folder to ensure that every library function will work as expected. To run tests in this folder, run $npm run test:deployed:package

Publishing utility functions

  1. Log in to npm via npm login in your terminal
  2. Increase the version of the application by going into the package.json file, and incrementing the version of the app.
  3. Type npm publish
  4. More information can be found in this publishing to npm link.
  5. npm registry for bizops-front-utils found in the private postmates registry.

FAQs

Package last updated on 06 Aug 2019

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