JSPM

odd-trimmer

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q23719F
  • License ISC

A light-weight package to trim and summerize strings

Package Exports

  • odd-trimmer
  • odd-trimmer/src/trimmer.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (odd-trimmer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

odd-trimer

Table of Contents

About

Creates summeries from long sentences

Getting Started

import the package and simply use

import oddTrimmer from 'odd-trimmer';

const newSentence =
  'This is an example string to be summerized and cut into ten pieces by the trimmer';
const summerizedSentence = oddTrimmer(newSentence, 'short');
consoloe.log(summerizedSentence); // This is an example string to be summerized and cut...

Prerequisites

What things you need to install the software and how to install them.

npm  or yarn

node

Installing

A step by step series of examples that tell you how to get a development env running.

Say what the step will be

npm install odd-trimmer

With Yarn

yarn add odd-trimmer

End with an example of getting some data out of the system or using it for a little demo.

Usage

import the package and simply use

import oddTrimmer from 'odd-trimmer';

const newSentence =
  'This is an example string to be summerized and cut into ten pieces by the trimmer';
const summerizedSentence = oddTrimmer(newSentence, 'short');
consoloe.log(summerizedSentence); // This is an example string to be summerized and cut...