Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tartan

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tartan

Library to render tartan pattern using its textual descriptor (threadcount).

  • 3.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

Tartan

This is javascript library that allows to parse, validate and render tartan patterns. See also article in Wikipedia. Library is distributed under the MIT license.

Install

To use library in your projects, run npm install tartan. Sources are available in /src directory, and pre-build bundles will be available in /dist directory after installation.

Usage

Add dist/tartan.js or dist/tartan.min.js to your page and use global tartan variable to access library API.

To use this library in CommonJS style use require:

var tartan = require('tartan');

// Now you can access library
console.log(tartan.version);

Since this library is frontend-oriented, some features may be unavailable when using it on a back-end (like rendering to HTML canvas). But you can still use parser and some renderers (like tartan.render.format()).

Examples

Run npm start or open index.html in your favorite browser to see live example of some features of this library. More info can be found in the docs.

Keywords

FAQs

Package last updated on 28 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc