<commit_before># Browser Javascript client for the Wurd CMS
Wurd is a service that lets you integrate a CMS into any website or app in minutes.  This client makes it easy to load content into the browser for client-side applications.

If you're using React, check out [wurd-react](https://github.com/wurdcms/wurd-react) as it includes easy to use components for setting up editors and content at once.

If rendering on the server, use the API or [wurd-node](https://github.com/wurdcms/wurd-node-v3).


## Example
```javascript
import wurd from 'wurd-web';

wurd.connect('myApp');

wurd.load('homepage,common')
  .then(content => {
    console.log(content); // { homepage: { title: 'Hello world' }, common: {...} }

    console.log(wurd.get('homepage.title')); // 'Hello world'
  });
```

See more in the [examples](https://github.com/wurdcms/wurd-web/tree/master/examples) folder or run them with `npm run examples`.
<commit_msg>Fix npm script name in readme<commit_after># Browser Javascript client for the Wurd CMS
Wurd is a service that lets you integrate a CMS into any website or app in minutes.  This client makes it easy to load content into the browser for client-side applications.

If you're using React, check out [wurd-react](https://github.com/wurdcms/wurd-react) as it includes easy to use components for setting up editors and content at once.

If rendering on the server, use the API or [wurd-node](https://github.com/wurdcms/wurd-node-v3).


## Example
```javascript
import wurd from 'wurd-web';

wurd.connect('myApp');

wurd.load('homepage,common')
  .then(content => {
    console.log(content); // { homepage: { title: 'Hello world' }, common: {...} }

    console.log(wurd.get('homepage.title')); // 'Hello world'
  });
```

See more in the [examples](https://github.com/wurdcms/wurd-web/tree/master/examples) folder or run them with `npm run example`.

{'fraction_non_alphanumeric': 0.12920448478376936, 'fraction_numerical': 0.0010678056593699946, 'mean_word_length': 4.120218579234972, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1388661', 'n_tokens_mistral': 602, 'n_tokens_neox': 564, 'n_words': 209}