@crystallography/space-groups
TypeScript icon, indicating that this package has built-in type declarations

2.2.1 • Public • Published

@crystallography/space-groups

npm version Build Status codecov License: MIT

Crystallography: Space Groups list;

Include following clases:

  • SpaceGroup
  • SpaceGroupData (json with information)

How to use:

import { SpaceGroup }  from 'space-groups';

const sg = SpaceGroup.getByHMName('P -1');

console.log(sg.id); // 2
console.log(sg.hermannMauguin); // P -1
console.log(sg.hallSymbol); // -P 1
console.log(sg.symetryList); // [ 'x,y,z', '-x,-y,-z' ]
console.log(sg.representativeOperations); // 1
console.log(sg.getCrystalSystem()); // Triclinic

Commands:

  • Build project: npm run build

Package Sidebar

Install

npm i @crystallography/space-groups

Weekly Downloads

1

Version

2.2.1

License

MIT

Unpacked Size

400 kB

Total Files

9

Last publish

Collaborators

  • vreshch