You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ta-platform-utils

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ta-platform-utils

TA platform utils for node.js and the browser

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Releasing

On the latest clean master:

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

FAQs

Package last updated on 03 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts