@dcos/copychars

--- šŸ‘©ā€šŸ”¬ Please be aware that this package is still experimental ā€” changes to the interface and underlying implementation are likely, and future development or maintenance is not guaranteed.

Stats

StarsIssuesVersionUpdatedCreatedSize
@dcos/copychars
100.1.23 years ago4 years agoMinified + gzip package size for @dcos/copychars in KB

Readme

Copy Characters Build Status


šŸ‘©ā€šŸ”¬ Please be aware that this package is still experimental ā€” changes to the interface and underlying implementation are likely, and future development or maintenance is not guaranteed.


This package provides a function to copy characters from a string.

Example


import copychars from "@dcos/copychars";

copychars("abc-123", 4, 3);  //123

TODO

  • Document how this function differs from subsrt and slice and why one would want to use instead of the native implementations
  • Add a performance test to verify that the provided solution allows the browser to properly garbage collect strings

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.