Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Brando.
###Install
$ npm install brando [-g]
require:
var Brando = require( 'brando' );
###Run Tests
to run all test files, install devDependecies:
$ cd brando/
# install or update devDependecies
$ npm install --dev
# run tests
$ npm test
to execute a single test file simply do:
$ node test/file-name.js
###Methods
Arguments within [ ] are optional.
/*
* A simple factory method, it returns a Sequence EventEmitter.
*
* - if repeat === 1
* - if items >= range, it returns a FullPerm.
* - if items < range, a PartPerm.
*
* - otherwise, it returns a Sequence (unlimited repetitions).
*
* NOTE:
* - max allowed value for items and range is 2^(32) - 1 (4 bytes values).
* - virtually, there is no size limit for sequence with repetitions, instead,
* the max length for full (FP) and partial permutations (PP) is limited to
* (2^(32) - 1) values * 2^(2) bytes/values, or 16GB.
* - unlimited repetitions for items are enabled for default (+Infinity),
* otherwise use repeat === 1 to produce a full or a partial range permutation.
*/
Brando#get : function ( Number items, Number range [, Number repeat ] ) : Sequence
/*
* Print some informational numbers about a particular sequence or permutation,
* without creating anything.
*/
Brando#sham : function ( Number items, Number range [, Number repeat ] ) : Sequence
/*
* Like #get, but it returns a Transform stream, see examples.
*
* - if repeat === 1
* - if items >= range, it returns a FPTransStream.
* - if items < range, a PPTransStream.
*
* - otherwise, it returns a SeqTransStream (unlimited repetitions).
*
* - for default, stream_opt:
* {
* highWaterMark : 16 * 1024
* , encoding : null
* , objectMode : false
}
*/
Brando#stream : function ( Number items, Number range [, Number repeat [, Object stream_opt ] ] ) : SeqTransStream
Copyright (c) 2014 < Guglielmo Ferri : 44gatti@gmail.com >
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Brando, is a module to handle pseudo-random sequences/permutations of integers using Buffers.
We found that brando 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.