Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Boo provides utilities to structure a program by means of prototypical object orientation and object composition, in an easy way. It provides you with inheritance, composition and mixin facilities, all packaged in a nice API.
var Animal = boo.Base.derive({
name: 'Unknow'
, say:
function say(thing) {
return this.name + ': ' + thing }
})
var Cat = Animal.derive({
withName:
function _withName(name) {
return this.derive({ name: name }) }
})
var nyah = Cat.withName('Nyan Cat')
nyah.say('Nyan nyan nyan~')
With Node.js and NPM, you can do the easy-modo install:
$ npm install boo
# then require it as usual
node> var boo = require('boo')
In the browser, you have to include the script tag pointing to the
boo.js
file:
<script src="/path/to/boo.js"></script>
<script type="text/javascript">
// `boo' is in the global scope now
</script>
ES3 and beyond!
For Node, just:
$ npm test # (or make test)
For the browser:
$ npm install -g brofist-browser
$ make browser-test
# Then point your browsers to the URL on yer console.
There are a few benchmarks you can run:
$ make benchmark
Boo ships with a full narrated reference manual, covering the
concepts and designs you need to know to use the library effectively.
You can either read it online, or locally — from the file
docs/build/html/index.html
.
Additionally, you can read the following introduction to Boo:
extend(target, mixins...)
Extends the target with the provided mixins, using a right-most precedence rule.
extend: object, mixin... -> object
merge(mixins...)
Like extend
, but pure.
merge: mixin... -> object
derive(proto, mixin...)
Constructs a new object that inherits from proto
.
derive: object, mixin... -> object
Base:make(...)
Instantiates a new object, and initialises it by calling the init
method.
make: @object => A... -> this <| object
Base:derive(mixin...)
Like derive
, but the prototype is the this
object.
derive: @object => mixin... -> this <| object
Boo uses the Github tracker for tracking bugs and new features.
MIT/X11.
FAQs
Core prototypical primitives for Object Orientation/Composition.
We found that boo 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.