🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

xtypejs-name-scheme-shortened-camel

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xtypejs-name-scheme-shortened-camel

xtypejs Shortened Camel name scheme

0.1.1
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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:

  • Registering a custom name scheme
  • Switching back to the default name scheme
  • registerNameScheme method
  • setNameScheme method

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

Keywords

type

FAQs

Package last updated on 26 Jan 2019

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