0.8.0 • Published 2 years ago
@communityboss/utils v0.8.0
@communityboss/utils
Generic isomorphic (browser+server) TypeScript utility library
Install
npm install --save @communityboss/utils
Usage
import { uuid } from '@communityboss/utils'
console.log(uuid.parse('...'))
Modules
This package is composed primarily of reusable typescript modules. Tree shaking might be easier for you if you consume things directly from typescript:
import { by } from "@communityboss/utils/src/sort";
Arrays
TODO
Base32
TODO
Classes
TODO
Date
TODO
Dateformat
TODO
File
TODO
Image
TODO
Imgx
TODO
Infotag
TODO
Json
TODO
Promises
TODO
Qs
TODO
Response
TODO
Sort
The TSDocs are complete for this library. Use for sorting arrays of objects by those objects' properties:
import { sort } from "@communityboss/utils";
const { by } = sort;
const myObjects = [ {id: 1, name: "Nathan" }, { id: 10, name: "Chris" }, { id: 11, name: "Dana" } ];
myObjects.sort(by("name"));
Support
TODO
Time
TODO
Urls
TODO
Uuid
TODO
Development
npm install
npm run dev