Code Monkey home page Code Monkey logo

pronouns.js's Introduction

pronouns.js


package-version-npm npm-downloads npm-dependency-versions license-npm npm-types github-latest-commit github-release github-stars

A simple system to keep track of pronouns — and genders — with JavaScript and TypeScript.

A simple and lightweight JavaScript library for managing and creating pronouns. Supports custom pronouns! I got carried away one day and now this library also has genders.

Contibutions welcome.

The programmatic (API) documentation is available here. Built using Docma. For browser usage, see the "browser" section below.

For examples, see the examples/ folder.

Installation

Install from NPM. Type definitions are included for you TypeScript people (including me), so there's no need to try and install @types/pronouns.js as a devDependency — it probably doesn't exist anyways.

$ npm i pronouns.js

Browser functionality

You may use any one of the following imports:

<!--
	Recommended for production - does not rely on a CDN, fixed version
	You must download the minified webpack.js file from the GitHub repository and then include it like so
 -->
<script src="../dist/webpack.js"></script>
<!--
	Recommended for testing and development
	"https://unpkg.com/pronouns.js" automatically redirects to the specified file of the latest version
	i.e. "https://unpkg.com/[email protected]/dist/webpack.js"
	you may use tag @latest to select the latest version (i.e. "https://unpkg.com/pronouns.js@latest")
	For production, it is HIGHLY RECOMMENDED you use a fixed version.
 -->
<script src="https://unpkg.com/pronouns.js"></script>
<!--
	Secondary CDN - not tested
	"https://cdn.jsdelivr.net/npm/pronouns.js" serves latest version, default file
	add version tag similar to unpkg for a specified version
	For production, it is HIGHLY RECOMMENDED you use a fixed version.
 -->
<script src="https://cdn.jsdelivr.net/npm/pronouns.js@latest/dist/webpack.js"></script>

Support

There is no support for CJS modules (require()). Use ESM instead (import ... from ...). If it works for one version, that's a coincidence. There is no intended support for CommonJS modules, only the modular syntax introduced in ES6. See MDN's JavaScript module guide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.