
Security News
Microsoft Releases Open Source Toolkit for AI Agent Runtime Security
Microsoft has released an open source toolkit for enforcing runtime security policies on AI agents as adoption accelerates faster than governance controls.
xtitan_utils
Advanced tools
XTitan_Utils is a JavaScript library for quick functions.
typesRandom and UUID functionalsMixin objectsMath functionsAdding script an core html file.
<script src="https://x-titan.github.io/utils/index.js" type="module" defer></script>
Import all functions
import * from "https://x-titan.github.io/utils/index.js"
Function is
is.str(value) // String
is.num(value) // Number
is.obj(value) // Object
is.bool(value) // Boolean
is.symbol(value) // Symbol
is.null(value) // null
is.defined(value) // any
is.undefined(value) // undefined
// And more usability methods of type functions
Using is for kind type arguments.
import { is } from "https://x-titan.github.io/utils/index.js"
function fizz (a) {
if(is.str(a)){
// typeof a === "string"
}
if(is.num(a)){
// typeof a === "number"
}
}
import { radianToDegree, degreeToRadian } from "https://x-titan.github.io/utils/index.js"
var angle = radianToDegree(Math.PI / 2) // return: 90
var radian = degreeToRadian(180) // return: 3.14 (Math.PI)
Clamp
import { clamp, map } from "https://x-titan.github.io/utils/index.js"
var result_1 = clamp(value, min, max)
var result_2 = map(value, fromLow, fromHigh, toLow, toHigh)
Greatest common divisor
import { gcd } from "https://x-titan.github.io/utils/index.js"
var result_1 = gcd(a,b)
import "https://x-titan.github.io/utils/index.js"
var result = Math.random(min, max)
var int = Math.randInt(min, max)
Create new random function
var rand = Math.newRandom(seed)
rand()
rand(min)
rand(min, max)
import { mixin, extend } from "https://x-titan.github.io/utils/index.js"
var obj = mixin(...objects)
var result = extend(obj, ...objects) // result === obj
import { Mono } from "https://x-titan.github.io/utils/index.js"
class A extends Mono(...objects) {
constructor(){
super()
}
}
class B {
constructor(){
Mono.mixin(this)
}
}
const C = Mono.extend(class C { })
FAQs
XTitan_Utils is a JavaScript library for quick functions.
We found that xtitan_utils 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.

Security News
Microsoft has released an open source toolkit for enforcing runtime security policies on AI agents as adoption accelerates faster than governance controls.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.