Atom Packages Directory

a package directory for a text editor of the 21st Century

Requirejs Snippets

Install with:
    apm install requirejs-snippets

RequireJS snippets for Atom

Adding shortcuts for defining and importing modules with RequireJS.


apm install requirejs-snippets


Define a module

```js define([‘'], function () { var exports = {


return exports; }); ```

Define a module with a name

```js define(‘', [''], function () { var exports = {


return exports; }); ```

Import a module

```js require(‘', function () {

}); ```

Keywords: javascript, snippets, require, requirejs, define, amd Suggest keywords
Fork me on GitHub