How do i pass string without removing the special characters in string in node.js ? I tried using string.raw but it removes special characters like ^ or / etc. I want to pass the string as is. I am using node js and puppeteer to pass username n password into the login pages of web apps. So the password would contain special characters. Hence i want to sent it as is.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
I am trying to pull some data from a Postgres database using Node.js and node-postures but I can't figure out why my service isn't connecting. my routes/index.js file: const express = require('express'); const router = express.Router(); const ordersCountController = require('../controllers/ordersCountController'); const ordersController = require('../controllers/ordersController'); const weeklyReportsController = require('../controllers/weeklyReportsController'); router.get('/orders_count', ordersCountController); router.get('/orders', ordersController); router.get('/weekly_reports', weeklyReportsController); module.exports = router; My controllers/weeklyReportsController.js file: const weeklyReportsService = require('../services/weeklyReportsService'); const weeklyReportsController = async (req, res) => { try { const data = await weeklyReportsService; res.json({data}) console...
Comments
Post a Comment