
Product
A Fresh Look for the Socket Dashboard
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
xtypejs-name-scheme-shortened
Advanced tools
shortened
npm install xtypejs-name-scheme-shortened --save
var xtype = require('xtypejs');
var xtypejsShortenedNameScheme = require('xtypejs-name-scheme-shortened');
// Either: Simple setup
xtype.options.setNameScheme(xtypejsShortenedNameScheme);
// Or: To first register name scheme internally for later
// reference by name, for switching between name schemes:
xtype.ext.registerNameScheme('shortened', xtypejsShortenedNameScheme);
xtype.options.setNameScheme('shortened');
// Scheme is now active here
<!--
Include name scheme script after xtypejs script
to automatically register the name scheme into
xtypejs with the default scheme name: 'shortened'
-->
<script src="path/to/xtype.js"></script>
<script src="path/to/xtypejs-name-scheme-shortened.js"></script>
<script>
xtype.options.setNameScheme('shortened');
// Scheme is now active here
</script>
For general documentation on using custom name schemes, see:
Type Default Name | Name in Scheme |
---|---|
null | null |
undefined | undef |
nan | nan |
symbol | symb |
function | func |
date | date |
error | err |
regexp | regex |
boolean | bool |
true | true |
false | false |
string | str |
whitespace | space |
single_char_string | one_char_str |
multi_char_string | multi_char_str |
empty_string | empty_str |
blank_string | blank_str |
non_empty_string | non_empty_str |
non_blank_string | non_blank_str |
number | num |
positive_number | pos_num |
negative_number | neg_num |
zero | zero |
non_positive_number | non_pos_num |
non_negative_number | non_neg_num |
non_zero_number | non_zero_num |
integer | int |
positive_integer | pos_int |
negative_integer | neg_int |
float | float |
positive_float | pos_float |
negative_float | neg_float |
infinite_number | inf |
positive_infinity | pos_inf |
negative_infinity | neg_inf |
non_infinite_number | non_inf_num |
array | arr |
empty_array | empty_arr |
single_elem_array | one_elem_arr |
multi_elem_array | multi_elem_arr |
non_empty_array | non_empty_arr |
object | obj |
empty_object | empty_obj |
single_prop_object | one_prop_obj |
multi_prop_object | multi_prop_obj |
non_empty_object | non_empty_obj |
primitive | prim |
nothing | nil |
any | any |
none | none |
FAQs
xtypejs Shortened name scheme
We found that xtypejs-name-scheme-shortened demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
Industry Insights
Terry O’Daniel, Head of Security at Amplitude, shares insights on building high-impact security teams, aligning with engineering, and why AI gives defenders a fighting chance.
Security News
MCP spec updated with structured tool output, stronger OAuth 2.1 security, resource indicators, and protocol cleanups for safer, more reliable AI workflows.