<commit_before>less-plugin-npm-import
========================

Adds the ability for less to import from npm packages

1. Install with npm
2. specify plugin in lessc with --npm-import
No options. import with npm://packagename/path..
css/less extensions not necessary

Testing
-------

run the tests by running `node test/index.js`
You require the dev dependencies and less v2 in your node_modules (it will be added as a dev dependency once less v2 is released)<commit_msg>Add programmatic instructions<commit_after>less-plugin-npm-import
========================

Adds the ability for less to import from npm packages

1. Install with npm
2. specify plugin in lessc with --npm-import
No options. import with npm://packagename/path..
css/less extensions not necessary

To use programatically, use something like this

```
var npm-import-plugin = require("less-plugin-npm-import"),
    options = { plugins: [npm-import-plugin] };
less.render(css, options)
    .then(...
```


Testing
-------

run the tests by running `node test/index.js`
You require the dev dependencies and less v2 in your node_modules (it will be added as a dev dependency once less v2 is released)
{'fraction_non_alphanumeric': 0.1269296740994854, 'fraction_numerical': 0.00686106346483705, 'mean_word_length': 4.030172413793103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1804588', 'n_tokens_mistral': 330, 'n_tokens_neox': 310, 'n_words': 143}