node-snowflake
v0.0.1
Published
a node.js clone for twitter snowflake
Downloads
935
Maintainers
Readme
node-snowflake
node-snowflake is a node.js clone for twitter snowflake.
###how to use
//only run simple http server require('node-snowflake').Server(3001); //request url example:GET http://localhost:3001/next_id?worker_id={optional}&data_center_id={optional}&sequence={optional} //response : {"id":"439658373735124992"}
###see examples/example.js