How to use the uniqid.process function in uniqid

To help you get started, we’ve selected a few uniqid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenSprites / OpenSprites-next / server / main.js View on Github external
app.get('/join', nocache, async function(req, res) {
  // if already signed in, skip
  if(req.session.user)
    res.redirect(req.query.r || '/')

  req.session.joinCode = req.session.joinCode || uniqid()

  res.render('join', {
    user: req.session.user,
    title: 'Join',

    code: req.session.joinCode,
    fail: req.session.joinFailWhy,
    already: req.session.join || {},
    project: signupProjectId != null,
    csrfToken: req.csrfToken()
  })

  delete req.session.joinFailWhy
})
github ddmng / fontah / src / fx / effects.js View on Github external
const uniqId = (props, dispatch) => {
    if (props.token) {
        console.log("using params: ", props.token)
        dispatch(props.action, props.token)
    } else {
        console.log("generating uniqid")
        const p = process("#")
        window.location = window.location + p
        dispatch(props.action, p)
    }
}
github kartikayg / StatusPage / components-service / src / lib / entityid.js View on Github external
export default (entityPrefix = '') => {
  return uniqid.process(entityPrefix);
};

uniqid

Unique ID Generator

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis

Popular uniqid functions