# atomizr

> Converts snippets for Atom, Sublime Text, TextMate, and Visual Studio Code

Latest version **0.3.3** (published 2017-02-01) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install atomizr
pnpm add atomizr
yarn add atomizr
bun add atomizr
```

Provides the command `atomizr`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2017-02-01 |
| First published | 2016-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | idleberg |
| Maintainers | idleberg |
| Keywords | conversion, atom, sublime text, textmate, vscode |

## Links

- npm: https://www.npmjs.com/package/atomizr
- Repository: https://github.com/idleberg/atomizr.js
- Homepage: https://github.com/idleberg/atomizr.js#readme
- Issues: https://github.com/idleberg/atomizr.js/issues
- npm.io page: https://npm.io/package/atomizr

## Dependencies (6)

- [uuid](https://npm.io/package/uuid.md) ^3.0.1
- [plist](https://npm.io/package/plist.md) ^2.0.1
- [xml-js](https://npm.io/package/xml-js.md) ^0.9.7
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [parse-json](https://npm.io/package/parse-json.md) ^2.2.0
- [cson-parser](https://npm.io/package/cson-parser.md) ^1.3.4

## Recent versions

- 0.3.3 (latest) — 2017-02-01
- 0.3.2 — 2016-12-29
- 0.3.1 — 2016-12-16
- 0.3.0 — 2016-12-16
- 0.2.0 — 2016-12-15
- 0.1.1 — 2016-12-14
- 0.1.0 — 2016-12-14

## README

# atomizr

[![npm](https://img.shields.io/npm/l/atomizr.svg?style=flat-square)](https://www.npmjs.org/package/atomizr)
[![npm](https://img.shields.io/npm/v/atomizr.svg?style=flat-square)](https://www.npmjs.org/package/atomizr)
[![Travis](https://img.shields.io/travis/idleberg/atomizr.js.svg?style=flat-square)](https://travis-ci.org/idleberg/atomizr.js)
[![David](https://img.shields.io/david/idleberg/atomizr.js.svg?style=flat-square)](https://david-dm.org/idleberg/atomizr.js)
[![David](https://img.shields.io/david/dev/idleberg/atomizr.js.svg?style=flat-square)](https://david-dm.org/idleberg/atomizr.js?type=dev)

Converts snippets for Atom, Sublime Text, TextMate, and Visual Studio Code. Based on the [Atom package](https://github.com/idleberg/atom-atomizr) of the same name.

## Installation

`npm install -g atomizr`

## Usage

### CLI

See `atomizr -h` for a list of all options

```bash
# Convert Sublime Text completions into Atom snippets
$ atomizr example.sublime-completions --target atom >> example.cson
```

Specifying `--source` is optional. However, since both, Atom and Visual Studio Code, work with `.json` snippets, it might be necessary to determine the source. When converting a Visual Studio Code snippet, the target scope for the target should be supplied (e.g. `--scope .source.haskell`) – otherwise the generic `.source` will be used.

### Node

```js
const Atomizr = require('atomizr');
const fs = require('fs');

fs.readFile('./example.sublime-completions', (error, data) => {
    if (error) throw error;

    let output = Atomizr.atom2sublime(data);
    console.log(output);
});
```

#### Methods

* **Atom**
    * `atom2sublime(data, [options Object])`
    * `atom2textmate(data, [options Object])`
    * `atom2vscode(data, [options Object])`
* **Sublime Text**
    * `sublime2atom(data, [options Object])`
    * `sublime2textmate(data, [options Object])`
    * `sublime2vscode(data, [options Object])`
* **TextMate**
    * `textmate2atom(data, [options Object])`
    * `textmate2sublime(data, [options Object])`
    * `textmate2vscode(data), [options Object]`
* **Visual Studio Code**
    * `vscode2atom(data, [options Object])`
    * `vscode2sublime(data, [options Object])`
    * `vscode2textmate(data, [options Object])`

## License

This work is licensed under [The MIT License](https://opensource.org/licenses/MIT)

## Donate

You are welcome support this project using [Flattr](https://flattr.com/submit/auto?user_id=idleberg&url=https://github.com/idleberg/atomizr.js) or Bitcoin `17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd`

---
_Source: https://npm.io/package/atomizr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
