3.75 GB
76,734 files
Updated 3 months ago
Name
Size
lib
CHANGELOG.md2.14 kB
xet
README.md624 Bytes
xet
package.json1.45 kB
xet
README.md

Install

npm install @citation-js/name

Use

let {parse, format} = require('@citation-js/name')

parse('First Last')
// { given: 'First', family: 'Last' }

format({ given: 'First', family: 'Last' })
// 'First Last'

API

parse(String name) -> Object

  • String name: Any name

format(Object name[, Boolean reversed]) -> String

  • Object name: Any name
  • Boolean reversed: Format as Last, First instead of First Last

Here, Object (CSL-JSON author format) has the following properties:

  • given
  • family
  • suffix
  • dropping-particle
  • non-dropping-particle
Total size
3.75 GB
Files
76,734
Last updated
Sep 11
Pre-warmed CDN
US EU US EU

Contributors