ta-platform-utils

1.0.0 • Public • Published

ta-platform-utils

Platform utils for node.js and the browser.

Install

npm i ta-platform-utils

Usage

Here's the gist, take a look at the codebase for more. First import it:

import utils from 'ta-platform-utils'

Regex

See /regex for more.

import { regex } from 'ta-platform-utils'
 
const password = 'kfK52k*s0h$42xC0'
const validPassword = regex.password.test(password)
//=> true

Enums

See /enums for more.

import { enums } from 'ta-platform-utils'
 
const stateOptions = utils.enums.states.map(state => ({
  text: state.name,
  value: state.abbrev,
}))
 
//=> [{ text: 'California', value: 'CA' }, ...{}]

Contribute

  1. Clone this repo
  2. Create a branch
  3. Make changes to /src
  4. Run a build npm run build, to make sure your changes check out.
  5. Open a PR

Releasing

On the latest clean master:

npm run release:major
npm run release:minor
npm run release:patch

/ta-platform-utils/

    Package Sidebar

    Install

    npm i ta-platform-utils

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • deltazulu
    • fluidbyte
    • jhabdas
    • psvet
    • tomfrost
    • levithomason
    • thomasruns
    • tadeploy
    • stephen_ta
    • athurman
    • kyleturco
    • deweybot