mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-05-15 18:11:02 +08:00
update
This commit is contained in:
31
node_modules/chance/docs/usage/node.md
generated
vendored
Normal file
31
node_modules/chance/docs/usage/node.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# node
|
||||
|
||||
It can also be used in [Node.js](http://nodejs.org)
|
||||
|
||||
```bash
|
||||
npm install chance
|
||||
```
|
||||
|
||||
then in your app
|
||||
|
||||
```js
|
||||
// Load Chance
|
||||
var Chance = require('chance');
|
||||
|
||||
// Instantiate Chance so it can be used
|
||||
var chance = new Chance();
|
||||
|
||||
// Use Chance here.
|
||||
var my_random_string = chance.string();
|
||||
```
|
||||
|
||||
As of version 0.5.5, the following is also offered as a convenience for getting
|
||||
an instance of Chance
|
||||
|
||||
```js
|
||||
// Load and instantiate Chance
|
||||
var chance = require('chance').Chance();
|
||||
|
||||
// Use Chance here.
|
||||
var my_random_string = chance.string();
|
||||
```
|
||||
Reference in New Issue
Block a user