0.1.1 • Published 6 years ago

xtypejs-name-scheme-shortened-camel v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

xtypejs - Name scheme: shortened-camel

Installation with npm

npm install xtypejs-name-scheme-shortened-camel --save

NodeJs import and setup

var xtype = require('xtypejs');
var xtypejsShortenedCamelNameScheme = require('xtypejs-name-scheme-shortened-camel');

// Either: Simple setup

xtype.options.setNameScheme(xtypejsShortenedCamelNameScheme);

// Or: To first register name scheme internally for later
// reference by name, for switching between name schemes:

xtype.ext.registerNameScheme('shortened-camel', xtypejsShortenedCamelNameScheme);
xtype.options.setNameScheme('shortened-camel');

// Scheme is now active here

HTML script tag import and setup

<!--
    Include name scheme script after xtypejs script 
    to automatically register the name scheme into
    xtypejs with the default scheme name: 'shortened-camel'
-->

<script src="path/to/xtype.js"></script>
<script src="path/to/xtypejs-name-scheme-shortened-camel.js"></script>

<script>
    xtype.options.setNameScheme('shortened-camel');
    // Scheme is now active here
</script>

Usage

For general documentation on using custom name schemes, see:

Type names in scheme


Type Default NameName in Scheme
nullnull
undefinedundef
nannan
symbolsymb
functionfunc
datedate
errorerr
regexpregex
booleanbool
truetrue
falsefalse
stringstr
whitespacespace
single_char_stringoneCharStr
multi_char_stringmultiCharStr
empty_stringemptyStr
blank_stringblankStr
non_empty_stringnonEmptyStr
non_blank_stringnonBlankStr
numbernum
positive_numberposNum
negative_numbernegNum
zerozero
non_positive_numbernonPosNum
non_negative_numbernonNegNum
non_zero_numbernonZeroNum
integerint
positive_integerposInt
negative_integernegInt
floatfloat
positive_floatposFloat
negative_floatnegFloat
infinite_numberinf
positive_infinityposInf
negative_infinitynegInf
non_infinite_numbernonInfNum
arrayarr
empty_arrayemptyArr
single_elem_arrayoneElemArr
multi_elem_arraymultiElemArr
non_empty_arraynonEmptyArr
objectobj
empty_objectemptyObj
single_prop_objectonePropObj
multi_prop_objectmultiPropObj
non_empty_objectnonEmptyObj
primitiveprim
nothingnil
anyany
nonenone