feat: Add Be and tbd skill, also added Roadmap file

This commit is contained in:
2026-05-10 16:32:12 -04:00
parent 3500ade13f
commit 0bb8885802
29587 changed files with 10611695 additions and 0 deletions

1
Skills/@be/node_modules/crypto-token/.npmignore generated vendored Normal file
View File

@@ -0,0 +1 @@
node_modules

10
Skills/@be/node_modules/crypto-token/History.md generated vendored Normal file
View File

@@ -0,0 +1,10 @@
1.0.1 / 2014-10-01
==================
* moving to devDepdendencies
1.0.0 / 2014-10-01
==================
* initial commit

8
Skills/@be/node_modules/crypto-token/Makefile generated vendored Normal file
View File

@@ -0,0 +1,8 @@
node_modules: package.json
@npm install
test: node_modules
@./node_modules/.bin/mocha --reporter spec
.PHONY: test

46
Skills/@be/node_modules/crypto-token/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,46 @@
# crypto-token
Creates a cryptographically secure token which is unguessable, inspired by `uid2`.
## Installation
$ npm install crypto-token
## Quickstart
```js
var token = require('crypto-token');
// sync
var t = token(); // 'jkwT1GzLbn'
// or async
token(function(err, res){
console.log(res); // 'sXLWkN4vMG'
});
// of a custom `length`
token(32); // 'Rc0Mta5BW7X5ULYWq6QmnIqwVCPAsZKG'
```
## Usage
### token([length], [fn])
Returns a token of `length` characters, will call back with `fn` or return directly depending on whether generation is synchronous or asynchronous
## License
The MIT License
Copyright © 2014, Segment.io <friends@segment.io>
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.

48
Skills/@be/node_modules/crypto-token/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
/**
* Module depenndencies.
*/
var crypto = require('crypto');
/**
* 62 characters in the ascii range that can be used in URLs without special
* encoding.
*/
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
/**
* Return a token of `length` characters.
*
* @param {Number} length
* @param {Function} fn
*/
module.exports = function(length, fn){
if (typeof length === 'function') fn = length, length = null;
if (!length) length = 10;
if (!fn) return str(crypto.randomBytes(length));
crypto.randomBytes(length, function(err, bytes){
if (err) return fn(err);
fn(null, str(bytes));
})
}
/**
* Make a Buffer into a string ready for use in URLs.
*
* @param {Buffer}
* @returns {String}
* @api private
*/
function str(bytes){
var res = [];
for (var i = 0; i < bytes.length; i++){
res.push(chars[bytes[i] % chars.length]);
}
return res.join('');
}

11
Skills/@be/node_modules/crypto-token/package.json generated vendored Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "crypto-token",
"description": "Creates a token which is unguessable",
"repository": "git://github.com/segmentio/crypto-token.git",
"version": "1.0.1",
"license": "MIT",
"main": "lib/index.js",
"devDependencies": {
"mocha": "1.x"
}
}

35
Skills/@be/node_modules/crypto-token/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
var Set = require('set-component');
var assert = require('assert');
var token = require('../');
describe('crypto-token', function(){
it('should generate tokens of proper length', function(){
assert(token(10).length == 10);
assert(token(5).length == 5);
assert(token().length == 10);
});
it('should generate random tokens', function(){
var tokens = Set();
var number = 10000;
for (var i = 0; i < number; i++) tokens.add(token());
assert(tokens.size());
});
it('should work asynchronously', function(done){
token(function(err, res){
assert(!err);
assert(res.length == 10);
done();
});
});
it('should generate tokens of `length` asynchronously', function(done){
token(5, function(err, res){
assert(!err);
assert(res.length == 5);
done();
});
})
});