dinopass-node
v1.0.1
Published
Simple DinoPass API client. Awesome password generator for kids, and apparently middle aged IT guys.
Downloads
39
Readme
dinopass-node
A very simple promise based API client written in TypeScript for dinopass.com, an awesome password generator for kids and apparently middle aged IT guys.
About Dino's Passwords What does 'Simple password' mean?
Simple passwords only have lower case letters and numbers. They are easier to remember but might also be easier for someone else to guess. What does 'Strong password' mean?
Strong passwords have mixed upper and lower case letters, a special character (like @, $, ! and so on) plus some numbers. They are best to use for important things like email accounts.
Install
npm install dinopass-node
Node.js
const DinoPass = require('dinopass-node');
// Using async/await
;(async () => {
const passwords = await DinoPass.strong(1)
console.log(passwords) // ['paleOl!ve66']
})();
// Promise
DinoPass.simple(1)
.then(p => console.log(p)); // ['crazypromise32']
ES6
import * as DinoPass from 'dinopass-node';
DinoPass.simple(1)
.then(p => console.log(p)); // ['crazypromise32']
CDN
For CDN, you can use unpkg, requires dependency axios
https://unpkg.com/dinopass-node/dist/dinopass.min.js
<body>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://unpkg.com/dinopass-node/dist/dinopass.min.js"></script>
<script>
DinoPass.simple().then(p => console.log(p)); //["ultrabrowser52"]
</script>
</body>