@fishtripr/js-functions v0.0.31
Frontend Utils
These repository contains all utilities for frontend apps.
Add this package to a project:
npm install --save @fishtripr/js-functionsRun 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.jsHow to publish a new version
Make sur you are login on npm, if not use:
npm loginUpdate the version of the package depend of the modification:
npm version [patch | minor | major]Build the boundle before publishing
npm run build:prodThen, publish a new version:
npm publish --access publicRun locally using webpack dev server
run:
npm run start:devUsage
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'6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago