Skip to content
utils / 1.5.0-rc.4

utils 1.5.0-rc.4

Install from the command line:
Learn more about npm packages
$ npm install @ecomplus/utils@1.5.0-rc.4
Install via package.json:
"@ecomplus/utils": "1.5.0-rc.4"

About this version

E-Com Plus Utils

Publish CodeFactor npm version License MIT

JS utility functions to E-Com Plus (not only) related apps

CHANGELOG

Usage

The @ecomplus/utils package provides a list of methods, each one is a utility function related to e-commerce apps and E-Com Plus APIs and schemas.

It's available for both Node.js and browser environments, and can also be imported entirely or partially with ES modules.

import {
  i18n,
  formatMoney,
  minQuantity,
  price,
  // ...
} from '@ecomplus/utils'

i18n({ en_us: 'Hello', pt_br: 'Olá' })
// => 'Hello'
formatMoney(10)
// => $10.00

Development

Fork/clone this repository and install dependencies normally:

git clone https://github.com/ecomplus/utils
cd utils
npm i

Then you can edit source files and test locally with npm run serve.

Contributing

Please read the contribution guidelines.

Deploy

Take a look on package.json scripts:

  • npm run doc - Update jsdoc/docdash generated documentation;
  • npm run release - Generate changelog and new version;

Details


Assets

  • utils-1.5.0-rc.4.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0