n
n
nexo
Search…
Web Tools

Add cookie and set 2 day expiration

1
n.cookies.set('key', 'value', 2); // Expiration in 2 days
Copied!

Get cookie value

1
n.cookies.get('key') // Returns 'value'
Copied!

n.params object contains a URL parsed data

1
console.log(n.params)
Copied!
1
-> {"key":"value","key2":"value2"}
Copied!
Last modified 1yr ago