@chemistry/cif-2-json
Version:
Tool for converting CIF to JSON and manipulate with content
38 lines (30 loc) • 1.18 kB
Markdown
# @chemistry/cif-2-json
[](https://badge.fury.io/js/%40chemistry%2Fcif-2-json)
[](https://github.com/chemistry/crystallography-api/actions?query=workflow%3ACI)
[](https://opensource.org/licenses/MIT)
Library that Convert CIF file to JSON and support manipulations
## Contains following tools:
- cif to json
- filter json (omit some fields)
- find loop by type
- normalize string
- preform basic check
- library of unit cells
## How to Use
```javascript
import { parse } from '@chemistry/cif-2-json';
const jcif = parse(cifContent);
console.log(JSON.strngify(jcif, null, 4));
```
## Technical details:
* Zero Dependency
* Performance optimizations
## Commands:
* Build project: `npm run build`
## Libraries used
* [typescript](http://www.typescriptlang.org/)
* [webpack](https://webpack.github.io/)
* [Jasmine](http://jasmine.github.io/)
* [Karma](http://karma-runner.github.io/)
## Contacts
* Volodymyr Vreshch vreshch@gmail.com