Secret.js is a package that permits you to save secrets or private things on a dir and get it when you want
NullOnRise (@NullGang)
You can use it to all your proyects without credits
Using commonJS:
const { importSecret, exportSecret } = require('secret.js');
or
const secret = require('secret.js');
Using EcmaScript Modules
import { importSecret, exportSecret } from 'secret.js';
or
import secret from 'distrox';
Basic Example:
//CJS
const { importSecret, exportSecret } = require('secret.js');
//ECM
import { importSecret, exportSecret } from 'secret.js';
exportSecret({
name: 'MySecret',
secret: 'MyPassword10328'
})
const utilcode = importSecret('UtilCode')
console.log(utilcode);
Not bugged types for typescript
Save secrets to a api to have it in a mongodb database
Custom secrets dirname
VSCode extension for making secrets
You can contribute making a "Pull Request" and adding some codding. Whe check that coding and if it is good whe Pull it.
None
ImportSecrets
ExportSecrets
LogSecrets