0.0.31 • Published 6 years ago

@fishtripr/js-functions v0.0.31

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

Frontend Utils

These repository contains all utilities for frontend apps.

Add this package to a project:

npm install --save @fishtripr/js-functions

Run Unit tests

Unit tests are added with Jasmine. To make it possible to run the unit test babel is needed.

node_modules/.bin/babel-node spec/run.js

How to publish a new version

Make sur you are login on npm, if not use:

npm login

Update the version of the package depend of the modification:

npm version [patch | minor | major]

Build the boundle before publishing

npm run build:prod

Then, publish a new version:

npm publish --access public

Run locally using webpack dev server

run:

npm run start:dev

Usage

All the function are directly available, you can import in your project like following:

import {

  /* Classes */

  App,
  Avatar,
  Conversation,
  ConversationMessage,
  Experience,
  HostType,
  Offer,
  OfferStatus,
  PaymentMethod,
  Role,
  Subscription,
  Turnkey,
  User,

  /* Helper */

  actionsStateCreator,
  actionMutationsCreator,
  basicState,
  objectListState,
  arrayListState,
  actionState,

  /* Functions */

  isObjectEmpty,
  capitalize,
  formatDates,
  formatDate,

} from '@fishtripr/js-functions'
0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago