What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-12 17:43:19
nodejs encrypt text with key
const crypto = require('crypto'); const algorithm = 'aes-256-ctr'; const secretKey = 'vOVH6sdmpNWjRRIqCc7rdxs01lwHzfr3'; const iv = crypto.randomBytes(16); const encrypt = (text) => { const cipher = crypto.createCipheriv(algorithm, secretKey, iv... Add solution -
Shell/Bash 2021-11-09 09:50:06
gatsby-plugin-styled-components
npm install --save gatsby-plugin-styled-components styled-components babel-plugin-styled-components # yarn yarn add gatsby-plugin-styled-components styled-components babel-plugin-styled-components # Edit gatsby-config.js module.exports = { plugins... Add solution -
Javascript 2021-11-07 14:54:17
how to setup tailwind for reactjs
1. npx create-react-app . 2. npm i -D tailwindcss postcss-cli autoprefixer or npm install tailwindcss@latest postcss@latest autoprefixer@latest //postcss - transform our compile css // autoprefixer - set vendor prefixes within our css automatically whe... Add solution