npm show registry
> npm config get registry
# https://registry.npmjs.org/
npm show registry
> npm config get registry
# https://registry.npmjs.org/
npm registry
https://registry.npmjs.org
npm install custom registry
npm config set registry <registry url>
npm install --registry=<registry url>
npm windows registry
var utils = require('windows-registry').utils;utils.associateExeForFile('myTestHandler', 'A test handler for unit tests', 'C:\\path\\to\\icon', 'C:\\Program Files\\nodejs\\node.exe %1', '.zzz');
get type of var js
function doSomething(x) {
if(typeof(x) === 'string') {
alert('x is a string')
} else if(typeof(x) === 'number') {
alert('x is a number')
}
}
getttype php
gettype ( mixed $var ) : string
gettype ("SALUT") => string
gettype (2) => integer
...etc ...
"bool"
"integer"
"double"
"array"
"object"
"resource"
"NULL"
"unknown type"
javascript find type of variable
> typeof "foo"
"string"
> typeof true
"boolean"
> typeof 42
"number"
if(typeof bar === 'number') {
//whatever
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us