Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
csl collection from citationstyles.org for node.js
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
citationstyles-org @ 228dee2
test
.gitignore
.gitmodules
.npmignore
.travis.yml
Makefile
README.md
config.json
csl.js
make-metadata.js
package.json

README.md

experimental work in progress, do *not** use this seriously!*

citationstyles

build status

This packages the CSL collection from http://citationstyles.org for usage with node.js.


API/Usage

list(callback)

The only argument is a callback function, which gets called with an array of built-in styles

example usage:

var csl = require('citatonstyles');

csl.list(function (err, res) {
  console.log(err || res);
  });

should log:

[ { id: 'academy-of-management-review',
    path: '/path/to/academy-of-management-review.csl' } ]

Bugs

  • "dependent" styles are ignored for now, since I have not figured out how to actually use them (with pandoc)
  • if you found more, please report them

Versioning

  • using semver
  • 'PATCH' (the last number) will get updated for every change in the upstream styles repo
  • the git short hash of the upstream repo will be added as build metadata

Licence

Creative Commons Attribution-ShareAlike 3.0 Unported, same as the styles themselves.

Something went wrong with that request. Please try again.