
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
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
The npm package xtypejs-name-scheme-shortened receives a total of 2 weekly downloads. As such, xtypejs-name-scheme-shortened popularity was classified as not popular.
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
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.