bpmv

1.3.0 • Public • Published

/**

  • bpmv - A Simple Validator
  • v1.03
  • The official documentation for bpmv.js can be found at http://brynmosher.com/bpmv/ .
  • Please go there as this document may be deprecated or out of date.
  • These are tasks that I find myself repeating over and over again. The rules
  • for me including code in here are simple: nothing that tries to manipulate
  • the DOM itself and things that mainly revolve around testing or altering
  • different kinds of states or values.
  • I provide no promises that I will follow my own rules or that any
  • of this code is fit for any purpose. This is a personal library and not
  • a full-blown open source project. I will add and remove what I see fit.
  • Consider yourself warned.
  • That said, I do hope that you can find something you like here. I would
  • recommend that you use a descreet copy and do not load the file from a pulbic
  • source (as I may refactor on a whim). If you wish to use a copy of this code,
  • feel free, but also remember that it's GPL - meaning that if you distribute
  • your altered copy in any way (such as serving it publicly), you must follow
  • the conditions outlined in the GPL.
  • Optional Setup
  • By default, the global variable bpmv will be created (attached to window).
  • If node.js is detected as the current environment, exports.bpmv will be
  • created. Additionally, there are two (admittadly sloppy) global settings you
  • can use to control bpmv.
  • If you do not wish to have bpmv called bpmv, you can set BPMV_VARNAME to any
  • string you wish. For example:
  • BPMV_VARNAME = 'validatorThingy';
  • // ...bpmv.js is loaded via

Package Sidebar

Install

npm i bpmv

Weekly Downloads

1

Version

1.3.0

License

GPLv2

Last publish

Collaborators

  • brynm