Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
generate agilemd identifiers
var AgileId = require('agileid')
AgileId.create()
// => VOKLm0YfEhYAAAA9
AgileId.create('foo')
// => foo!VOKLm0YfEhYAAAA-
AgileId.cast('user', 'VOKLm0YfEhYAAAA9')
// => user!VOKLm0YfEhYAAAA9
type AgileId <: String
AgileId.create : (type? : String, fromId? : AgileId | ObjectId) => AgileId
note, passing in the fromId
is deprecated. Use AgileId.cast
instead.
Only use AgileId.create
when you are expecting to generate a completely new
identifier.
AgileId.cast : (type? : String, AgileId | String | ObjectId) => AgileId
AgileId.parse : (String | AgileId) => {id: String, type: String?}
AgileId.format : ({id: String, type?: String}) => AgileId
AgileId.isValid : (input : Any) => Boolean
Returns true
if input
is a valid AgileId string.
AgileId.toHexString : (id : AgileId) => hex : String
Useful for converting AgileIds to ObjectIds. Note that AgileId type information is lost.
$ npm install agileid
> agileid
< VOKaxIFSYp7_AAHs
# typed ids
> agileid foo
< foo!VOKa3KhUgSP_AAB9
# cast from objectid
> agileid -- 54e29b00153dbf6e00000001
< VOKbABU9v24AAAAB
# cast from objectid with type
> agileid foo 54e29b00153dbf6e00000001
< foo!VOKbABU9v24AAAAB
From package root:
$ npm install
$ npm test
ISC. (c) MMXV AgileMD
FAQs
generate agilemd identifiers
The npm package agileid receives a total of 0 weekly downloads. As such, agileid popularity was classified as not popular.
We found that agileid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.